/ Published in: PHP

URL: http://iamnotagoodartist.com/2009/04/wordpress-excluding-categories-on-secondary-front-pages/
If you leave out the "paged" parameter, the same results are queried and shown on each pagination. Of course, you'll want to change the "3" to whichever category you'll want to exclude.
Expand |
Embed | Plain Text
<?php if ( is_home() ) { query_posts("paged=$paged&cat=-3"); } while (have_posts()) : the_post(); ?>
You need to login to post a comment.