2012/12/21
記事の一件目は、アイキャッチ画像や、抜粋文を乗せて、それ以降は、日付とタイトルだけでいい。
というときに使います。
<?php if (have_posts()) : ?> <?php $count = 0; while(have_posts()) : the_post(); ?> <?php $count++; ?> <?php if($count == 1) : ?> (…1件目の記事…) <?php else : ?> (…2件目以降の記事…) <?php endif; ?> <?php endwhile; ?> <?php endif; ?>