Show a specific category on homepage

July 27, 2013 6:46 pm Written by Leave your thoughts

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.

Categorised in: ,

This post was written by BrodNeil

Leave a Reply

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