我試圖創建一個包含特色圖片的標題出現在滑塊中間的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