我需要在第四篇文章后面加一个“div”。我在页面上显示了8篇文章,我在上面使用的代码显示了第4和第8页之后的div。。。o只需要第四个,而不是每个第四个,就在第一个第四个之后。
<?php if (have_posts()) : $count = 0; ?>
<?php query_posts("showposts=8&post_type=vender_list&orderby=rand");?>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php echo eh_postImage(240,240,1); ?>
<?php the_title(); ?>
<?php the_content_rss(\'\', FALSE, \'\', 60); ?>
</article>
<?php if ($count % 4 == 3) { ?>
<div class="vender_hr"></div>
<?php } ?>
<?php $count++; ?>
<?php endwhile; endif; wp_reset_query();?>