WordPress.org

Ready to get started?Download WordPress

Forums

Newest Posts In Catagories List (2 posts)

  1. Nudger
    Member
    Posted 7 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
    Member
    Posted 7 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