Exclude Multiple Categories From Blog
-
i’ve searched the forums and did what they said and it works… kind of…
here’s my code
<?php if (have_posts()) : ?> <?php query_posts('cat=-4723,-1618'); ?> <?php while (have_posts()) : the_post(); ?> <!--BlogStuff--> <?php endwhile; ?>
it excludes both the categories, but when i go to /blog/ the first page is blank, i navigate to the next page of posts and there’s only one post, then i navigate to the 3rd page and i see 3 posts in a row which is what it should be on all the pages. any idea why it’s doing that?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Exclude Multiple Categories From Blog’ is closed to new replies.