Since upgrading to 2.1.1 my index is displaying posts multiple times. Each post with more than one category appears once for each category it is associated with.
example:
post title : category A, C, E
appears three times on the index
post title: category A
appears once
For now, i went into each post and removed the multiple categories, and it's displaying fine, but often I want to post a single entry in more than one category.
This only seems to be happening on the index, and not in the archives.
here's my loop:
<?php if (have_posts()) : while (have_posts()) : the_post();
$loopcounter++; ?>
<?php if ($loopcounter == 1) { ?>
<div id="date">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><span class="head_new"><?php the_title(); ?></span></a> <span class="talk"><?php comments_popup_link('', '1', '% '); ?></span>
</div>
<div id="tumble" class="<?php $cat = get_the_category(); $cat = $cat[0]; echo $cat->cat_name; ?>">
<?php the_content(__('(read more...)')); ?>
<p class="meta">Posted <?php the_date('l, F jS, Y') ?> in <?php the_category(', ') ?> <?php edit_post_link('Edit', ' | ', ''); ?></p>
</div>
<?php } else { ?>
<div class="date">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><span class="talk"><?php comments_popup_link('', '1', '% '); ?></span>
</div>
<? } ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
what am I doing wrong?