excluding a category from the loop
-
I am using the following loop:
<?php if (have_posts()) : ?>
<?php query_posts(‘cat=-3’); ?><?php while (have_posts()) : the_post(); ?>
This excludes posts from the category ID 3, the problem is when I click next page it reloads the same content as the homepage.
Why is this happening? and is there another workaround I could try?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘excluding a category from the loop’ is closed to new replies.