<div id="my-glider">
<div class="scroller">
<div class="content">
<?php $count = 1 ?>
<?php $my_query = new WP_Query('category_name=featured&showposts=5');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate[$post->ID] = $post->ID; ?>
<div class="section" id="section<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<div class="feature-entry" id="post-<?php the_ID(); ?>">
<h3>Featured Article #<?php echo $count; ?></h3>
<h2>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<?php the_excerpt(); ?>
<p>
<?php the_author_posts_link(); ?> | <?php the_time('F jS, Y') ?> |
<a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continued</a>
</p>
</div>
</div>
<?php $count = $count + 1 ?>
<?php endwhile; ?>
</div>
</div>
<div class="controls">
<ul class="clearfix">
<li class="feat-nums">Featured Articles:</li>
<?php $count = 1 ?>
<?php $my_query = new WP_Query('category_name=featured&showposts=5');
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li>
<a href="#section<?php the_ID(); ?>"><?php echo $count; ?></a>
</li>
<?php $count = $count + 1 ?>
<?php endwhile; ?>
</ul>
</div>
</div>
<script type="text/javascript" charset="utf-8">
var my_glider = new Glider('my-glider', {duration:0.5, autoGlide:true, frequency:8});
</script>
<div style="clear:both;"></div>
Это мой functions.php. Я хочу показывать все избранные сообщения по очереди, но по какой-то причине они не отображаются по очереди.