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; }
- Es können Artikelbilder sind wie unter „Artikelbild mit Zufalls-Bild als Fallback“ beschrieben eingefügt werden (z.B. über der Überschrift)
- Referenz