Pulling in Wordpress Content in your CakePHP Website

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);

One Response to “Pulling in Wordpress Content in your CakePHP Website”

  1. Timekeeper Says:

    I really very liked this post. Can I copy it to my blog?
    Thanks in advance.

    Sincerely, Your Reader.

Leave a Reply