Hi all,
Basically, as the title suggests, I am trying to show the latest 2 posts from a page of page categories on my homepage. So, I have a parent page, which has 5 child pages, which all contain multiple sub-pages - the actual posts.
I want to show on my homepage the latest two pages out of all 5 page categories. I am using the child_of property to do this, but currently it is only showing the latest two posts of the first category listed (254). Here is my code:
<?php query_posts(array(
'post_status' => 'publish',
'static' => true,
'child_of'=>'254,271,228,237,34',
'post_per_page' => '2',
'showposts' => '2',
)); ?>
So, I basically want it to show the latest two posts out of all 5 categories. If anyone can show me how to do this, I would really appreciate it.
Thanks