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?
- The topic ‘excluding a category from the loop’ is closed to new replies.