The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Newest Posts In Catagories List (2 posts)

  1. Nudger
    Posted 9 years ago #

    Is it possible to have "Newest posts in x catagory" displayed in the sidebar? I am working on a theme for a music review site, and would like something so I could show "Newest CD reviews", "Newest Live reviews" ect. ect., where CD reviews would have one category, live has another and so on.

  2. tsguitar
    Posted 9 years ago #

    Taken directly from Codex pages on the_loop and query_posts:

    <?php query_posts('category_name=featured&showposts=1');?>
        <!-- Do stuff... -->

    If you changecategory_name= to whatever category you want and showposts= to the number you want, that should work for you.

Topic Closed

This topic has been closed to new replies.

About this Topic