Show a specific category on homepage

Last Updated on December 19, 2019 by BrodNeil

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.

Leave a Comment