添加不同類第一個div我有以下代碼:環路
<?php while ($loop->have_posts()) : $loop->the_post(); ?>
<div class="item">
<?php the_post_thumbnail('full');?>
<div class="container">
<div class="carousel-caption">
<h1>
<?php the_title(); ?>
</h1>
<p>
<?php the_excerpt(); ?>
</p>
</div>
</div>
</div>
<?php endwhile; ?>
,我需要添加類「活動」的第一個div(旁邊的「項目」)