我正在使用 twitter bootstrap 主题在 wordpress 中工作。我刚刚制作了一个模板,它从图像、名称、名称等转发器字段中获取值,我在 ul 和 li 的模板中调用这些值现在我希望在 4 li 之后会有一个 hr 标记或行我怎么能实现它。
这是我从转发器字段中获取数据到我的模板的代码:
<ul class="thumbnails">
<?php $gcount=get_post_meta($post->ID, 'europe_speaker', true);
for($i=0;$i<$gcount;$i++){
$photo=get_post_meta($post->ID, "europe_speaker_".$i."_photo", true);
$name=get_post_meta($post->ID, "europe_speaker_".$i."_name", true);
$designation=get_post_meta($post->ID, "europe_speaker_".$i."_designation", true);
$company=get_post_meta($post->ID, "europe_speaker_".$i."_company", true);
$line=get_post_meta($post->ID, "europe_speaker_".$i."_line", true);
$category=get_post_meta($post->ID, "europe_speaker_".$i."_category", true);
$download=get_post_meta($post->ID, "europe_speaker_".$i."_download", true);
$download_link=get_post_meta($post->ID, "europe_speaker_".$i."_download_link", true);
?>
<li class="span2">
<div class="speakers_img-height">
<img src="<?php echo $photo?>" class="img-polaroid" style="margin-bottom:5px;"/><br/><span style="color:#686868;"><strong><?php echo $name?></strong><br/><?php echo $designation?><br/><?php echo $company; ?><br/><a href="<?php echo $download_link; ?>"><?php echo $download; ?></a></span>
</div>
</li>
<?php }?>
</ul>
在给 li span2 课程之后,它将连续给 4 li,我想在那之后添加一个 line 或 hr 标签。请帮帮我。