1,4,8,10,13 ......ポジションで 'first'と呼ばれる<div>
クラスを印刷したいのですが、どうすればいいですか?PHPで特定の位置に何かを印刷するには
<?php
$i=0;
?>
<?php
while (have_posts()) : the_post();
?>
<div class="column dt-sc-one-third<?php if ($i==0){ ?> first <?php } ?>">
<p class="comments">
<a title="Comment on Latin words Ipsum" href="#">
<span class="fa fa-comment"> </span>
25
</a>
</p>
</div>
<?php $i++; endwhile; ?>
私が最初のdivが最初というクラス名を持つ必要がありますし、4番目のdivは、そのクラスを持つべきというように.....
http://stackoverflow.com/a/8135703/295783 – mplungjan