I have a post loop (index.php) that shows three columns as headings, and above them there is a slide show based on a skip message.
<div class="nuotraukos"> <?php if (have_posts()) : ?> <?php $nuotraukos = new WP_Query('category_name=nuotraukos&showposts=3'); while ($nuotraukos->have_posts()) : $nuotraukos->the_post(); $do_not_duplicate = $post->ID; ?> <div class="post" id="post-<?php the_ID(); ?>"> <p class="postmetadata"><?php edit_post_link(__('Edit')); ?></p> <div class="entry"> <?php if ( function_exists( 'meteor_slideshow' ) ) { $slug = basename(get_permalink()); meteor_slideshow('' . $slug. ''); } the_content('<h2>' . get_the_title() . '</h2>'); ?> </div> </div> <?php endwhile; ?> <?php endif; ?>
There is a loop in the Meteor slideshow, and I assume that it cancels the post loop after the first request. Therefore, it prints only one heading (but displays it three times), you can see it at http://studioglamour.co.uk .
I need three different links displayed below the slide show, but I donβt know how to fix it.
source share