Here is my problem:
a) I want a category to be excluded from the loop
b) I have applied <?php if (in_category('x') && !is_single() ) continue; ?>
c) Out of the 10 latest posts, 9 belong to category x.
d) The home page only displays 1 post.
Following the tip at Perishable Press here, I have modified my index.php as below to add a counter. I have tried changing it to > 10. Yet only one post is being displayed. The blog Reading Settings is set at 10 posts.
What am I doing wrong?
<?php if (have_posts()) : ?>
<div id="content_inner">
<?php
while (have_posts()) : the_post(); ?>
<?php static $count = 0;
if ($count == "10")
{ break; }else { ?>
<?php if (in_category('88')) continue; ?>
<h2<?php if ($post_count == 1) echo(' class="top"'); ?>><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post_author"><span class="date"><?php the_time('F j, Y') ?></span> | <em>by</em> <?php the_author_posts_link(); ?></p>
<div class="format_text">
<?php the_content('[Read more →]'); ?>
</div>
<p class="to_comments"><span class="num_comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
<!-- Share this--> <?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>
<!-- Edit Post Tag--><?php edit_post_link('Edit This', '<span class="edit_post"> ', '</span>'); ?>
</p>
<?php $post_count++; ?>
<?php $count++; } ?>
<?php endwhile; ?>