correodefelip;
In 2.0.1 I used the exact code from The_Loop as suggested above and it worked–meaning it excluded any posts in Category 3 from displaying.
Here’s my index.php
file I used under themes/default
.
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- The following tests if the current post is in category 3. -->
<!-- If it is not, the code within The Loop is executed as normal. -->
<!-- If it is, nothing is done until the next post is processed. -->
<?php if ( !(in_category('3')) ) { ?>
<div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y'); ?></small>
<div class="entry">
<?php the_content(); ?>
</div>
<p class="postmetadata">Posted in <?php the_category(', '); ?>
</div> <!-- closes the first div box -->
<?php } ?> <!-- Close the if statement. -->
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>