Showing recent posts in parts of the site?
I have a section of my site where I list recent forum posts on the page (among other things) What I’d like to do is add another section that’s more specific, i.e. listing recent posts to a specific forum.
Is it possible to modify the code below to look in specific forums?
$args = array('post_type' => 'topic', 'posts_per_page' => 5);
$forum_topics = new WP_Query($args);
You must be logged in to reply to this topic.