[codebox]<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php static $count = 0;
if ($count == "n") { break; }
else { ?>
<?php if ( in_category('x') && !is_single() ) continue; ?>
<?php if ( in_category('y') && !is_single() ) continue; ?>
<?php if ( in_category('z') && !is_single() ) continue; ?>
<div class="post">
<?php the_content(); ?>
</div>
<?php $count++; } ?>
<?php endwhile; ?>
<?php endif; ?>[/codebox]
This was a whole new loop that I decided to use to clean things up, but the category exclusion code in there somehow only makes my blog show one post, the latest one.
Then I tried:
[codebox]if (is_home()) if (in_category(’14′)) continue;[/codebox]
But that just broke my blog. It said not found. I believe that doesn't work because my blog page isn't the home page in my wordpress site. That is the same reason why I think the plugins for this sort of thing didn't work. I tried two.
Any suggestions would be great. Thank you.
Edited by Dreylivude, 01 March 2009 - 07:17 PM.