Return to Snippet

Revision: 14513
at June 5, 2009 21:19 by rocktronica


Initial Code
<?php if ( is_home() ) {
    query_posts("paged=$paged&cat=-3");
}
while (have_posts()) : the_post(); ?>

Initial URL
http://iamnotagoodartist.com/2009/04/wordpress-excluding-categories-on-secondary-front-pages/

Initial Description
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.

Initial Title
Exclude WordPress Categories on Secondary Front Pages

Initial Tags
page, wordpress, category

Initial Language
PHP