Hi
<?php query_posts('cat=-3,-7'); ?>
this code works in category.php?
Because when I insert this code and enter in http://www.mysite.com/category/internet
Doesn't just list the internet posts and except the posts of the category ID 3 and 7, but, lists the last posts, independent of the category.
Did I find that very strange, is it lacking something in my code?
Thank you.
----
Full Code:
<?php query_posts('cat=-3,-7'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Article: <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php the_excerpt(); ?>
<?php endwhile; ?>
<?php else : ?>
'0' posts in the category</h2>
<?php endif; ?>