Skip to:
Content
Pages
Categories
Search
Top
Bottom

Showing recent posts in parts of the site?


  • inliving
    Participant

    @inliving

    Hi,

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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.