Beiträge im Archiv in zwei Spalten ausgeben

Dieser Text wurde am 30. Juli 2013 veröffentlicht und enthält möglicherweise veraltete Informationen.

archive.php

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $postcount++; ?>
<div <?php post_class() ?>>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_excerpt() ?>
</div>
</div>
<?php if ($postcount % 2 == 0) { ?><p class="clear"></p><?php } ?>
<?php endwhile; else : endif; ?>

style.css

.clear { clear:both; margin:0; padding:0; }
.archive .post { float:left; width:40%; margin:0 10px 10px 0; }