A blog post

Pulling in WordPress Content in your CakePHP Website

Posted on the 21 November, 2008 at 8:05 am Written by admin in CakePHP, Wordpress

Integrating your WordPress posts into your CakePHP website is easy.

WebDevKungFu has an excellent post, just follow the step by step instruction.

To this post, I just had to modify a line of code to further filter out what WordPress content (posts and published only) comes out as headlines

From his code, add the following:
$posts = $this->Blog->findAll(array(’post_status’ => ’publish’, 'post_type’ => ’post’),null,’post_date DESC’,3);

reply