How to? Display X posts without counting hidden category
-
Hmm help. I have a category excluded from the loop (WP 2.0) using:
<?php if (in_category(’10’)) continue; ?>
but I’m only displaying 1 post. So.. the loop skips past – but still counts – posts in the hidden category and .. blank. Can see the problem at https://www.rickdavidson.com. Is it possible at all to tweak the code to move to the next post rather than loop around and still count the post? Is the above line just wrong? I can’t use plugins etc to exclude the post from the index because I do display this category separately on the page. Hmm.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to? Display X posts without counting hidden category’ is closed to new replies.