我试图创建一个包含特色图片的标题出现在滑块中间的div。WordPress精选图片标题重复
为什么标题循环?
链接:http://natashamcdiarmid.com/clients/JLP/wp/
怎样看:http://natashamcdiarmid.com/clients/JLP/
<div class="slider">
<?php query_posts('post_type=page'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_post_thumbnail('slider'); ?>
<div class="caption-wrap"><?php the_post_thumbnail_caption(); ?></div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
停止的循环改变它,但现在它并没有拉动标题。 – tmcd
@NatashaMcd:是的,因为我忘了添加一个回声,嗯,我认为我的回答对你有帮助,我认为我应该得到一个**赞成** nn !!?大声笑 – Fox