Ignoring 1 category in the loop, but reading settings counts the post
-
So I have this code that does not display posts from this category in my index
<?php if (in_category('4')) continue; ?>
However, it still counts the post it skips, so say I want to display 10 posts and a post made in category 4 was just created, the loop would only display 9 posts
Anyone know how to fix this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ignoring 1 category in the loop, but reading settings counts the post’ is closed to new replies.