i have coded a slider into my wordpress theme to use query posts to display the thumbnail and the content however it appears that its displaying the whole posts? and not just the one relating to the slide at that time?
<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>
Please can someone advise what I'm doing wrong?
http://www.milknhny.co.uk/PeterWork
This is the NIVO Mark up:
<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>
As you can see the caption for this is completely outside the wrappers?