我在wordpress主题中编写了一个滑块,使用查询帖子来显示缩略图和内容,但它似乎显示了整个帖子?而不仅仅是那张幻灯片?
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<?php $the_query = new WP_Query( \'showposts=5\' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<?php the_post_thumbnail(); ?>
<div class="slide-caption">
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<?php endwhile;?>
</div>
有人能告诉我我做错了什么吗?http://www.milknhny.co.uk/PeterWork
这是NIVO加价:<div class="slider-wrapper">
<div id="slider" class="nivoSlider">
<img src="images/slide1.jpg" alt="" />
<a href="http://dev7studios.com"><img src="images/slide2.jpg" alt="" title="#htmlcaption" /></a>
<img src="images/slide3.jpg" alt="" title="This is an example of a caption" />
<img src="images/slide4.jpg" alt="" />
</div>
</div>
<div id="htmlcaption" class="nivo-html-caption">
<strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
</div>
正如您所看到的,这篇文章的标题完全在包装之外?