Show a specific category on homepage

if (is_home()) {




here’s another hack to show what category you want on homepage

<?php if (have_posts()) :query_posts($query_string .'&cat=3'); while (have_posts()) : the_post(); ?>

And if you want to exclude a specific category from homepage, instead of '&cat=3', put'&cat=-3' .

via WordPress › Support » Show a specific category on homepage.

Share and let us learn from each other:

Published by Neil Anthony

Feel free to contact me or connect with me. You can also know more about me and my interests at, my perosnal blog.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.