WordPress is full of globals and a bunch of other garbage that would make 
it nearly impossible to work with *any* other codebase. You would be much 
better off creating models that connected to WP's database and tables. 
That's my suggestion.

On Friday, March 2, 2012 3:27:53 PM UTC-8, 85VicWagonGuy wrote:
>
> This code displays the last 3 Wordpress posts in normal PHP: 
>
> <?php 
> /* Short and sweet */ 
> define('WP_USE_THEMES', false); 
> require('./blog/wp-blog-header.php'); 
> ?> 
>
>
> <!-- Get the last 3 posts. --> 
>
> <?php query_posts('showposts=3'); ?> 
> <?php while (have_posts()) : the_post(); ?> 
> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent 
> Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> 
> <?php endwhile;?> 
>
> ============================================== 
>
> How do we do this in CakePHP? 
>
> I need posts from http://www.whereweroll.com/blog/ to appear on the 
> http://www.whereweroll.com homepage. 
>
> The KyleRobinsonYoung instructions aren't complete, and he is done 
> freelancing. 
>
> Thanks.


On Friday, March 2, 2012 3:27:53 PM UTC-8, 85VicWagonGuy wrote:
>
> This code displays the last 3 Wordpress posts in normal PHP: 
>
> <?php 
> /* Short and sweet */ 
> define('WP_USE_THEMES', false); 
> require('./blog/wp-blog-header.php'); 
> ?> 
>
>
> <!-- Get the last 3 posts. --> 
>
> <?php query_posts('showposts=3'); ?> 
> <?php while (have_posts()) : the_post(); ?> 
> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent 
> Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> 
> <?php endwhile;?> 
>
> ============================================== 
>
> How do we do this in CakePHP? 
>
> I need posts from http://www.whereweroll.com/blog/ to appear on the 
> http://www.whereweroll.com homepage. 
>
> The KyleRobinsonYoung instructions aren't complete, and he is done 
> freelancing. 
>
> Thanks.


On Friday, March 2, 2012 3:27:53 PM UTC-8, 85VicWagonGuy wrote:
>
> This code displays the last 3 Wordpress posts in normal PHP: 
>
> <?php 
> /* Short and sweet */ 
> define('WP_USE_THEMES', false); 
> require('./blog/wp-blog-header.php'); 
> ?> 
>
>
> <!-- Get the last 3 posts. --> 
>
> <?php query_posts('showposts=3'); ?> 
> <?php while (have_posts()) : the_post(); ?> 
> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent 
> Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> 
> <?php endwhile;?> 
>
> ============================================== 
>
> How do we do this in CakePHP? 
>
> I need posts from http://www.whereweroll.com/blog/ to appear on the 
> http://www.whereweroll.com homepage. 
>
> The KyleRobinsonYoung instructions aren't complete, and he is done 
> freelancing. 
>
> Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to