WordPress.org

Support

Support » How-To and Troubleshooting » Newest Posts In Catagories List

Newest Posts In Catagories List

  • 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Newest Posts In Catagories List’ is closed to new replies.