/ Published in: PHP
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
Copy this code and paste it in your HTML
<?php if ( is_home() ) { query_posts("paged=$paged&cat=-3"); } while (have_posts()) : the_post(); ?>
URL: http://iamnotagoodartist.com/2009/04/wordpress-excluding-categories-on-secondary-front-pages/