Excluding category from the loop prevents paged index
-
OK, after doing many experiments I though that something there is fishy, so I decided to do it with default TwentyTen theme.
Following instructions at:
https://codex.www.ads-software.com/The_Loop
I inserted:
<?php if ( is_home() ) { query_posts($query_string . '&cat=-3'); } ?>
right before:
<?php while ( have_posts() ) : the_post(); ?>
Result: you click “Older posts” and each next page (2,3,4…) shows the same posts.
Is it a bug or I don’t understand something? :-/
Thanks for the help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Excluding category from the loop prevents paged index’ is closed to new replies.