Anyone know if you can loop through both pages and posts at the same time?
Anyone know if you can loop through both pages and posts at the same time?
you possibly need to set the 'post_type' to 'post' and 'page' for the query;
http://codex.wordpress.org/Class_Reference/WP_Query
http://codex.wordpress.org/Class_Reference/WP_Query#Type_.26_Status_Parameters
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Yep that works.. thanks
This topic has been closed to new replies.