I'm trying to set up a wordpress blog. I have one loop with featured posts, that pulls from the 'Featured' category and displays a slider of prominent posts.
Below that, I have the regular feed of posts. The regular feed works great, but the featured posts only show posts from wherever the bottom loop happens to be. Example, if I am on page one of the main feed, the top slider will only show posts with the category featured that are also on page one.
How can I make my slider loop pull from ALL Featured category posts?
EDIT: Added code, below:
<?php
/** Homepage file */
get_header(); ?>
<div id="rotator-wrapper">
<div class="featured-rotator">
<?php if ( have_posts() ): ?><ul>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( in_category('featured') ): ?>
<li class="post">
<div class="image"><?php the_post_thumbnail(); ?></div>
<h2><a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if (get_post_meta($post->ID, "Author", true)): ?>
<span class="author">By <?php echo get_post_meta($post->ID, "Author", true); ?></span>
<?php endif; ?>
<?php the_content(__("Continue reading »")); ?>
</li>
<?php endif; ?>
<?php endwhile; ?>
</ul><?php endif; ?>
</div>
</div>
<div id="content-wrapper">
<h2 class="recent">Recent Reviews</h2>
<?php if ( have_posts() ): ?>
<ol>
<?php while ( have_posts() ) : the_post(); ?>
<li class="post">
<article class="post-excerpt">
<div class="image"><?php the_post_thumbnail(); ?></div>
<div class="post-meta">
<h2 class="post-title"><a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if (get_post_meta($post->ID, "Author", true)): ?>
<span class="author">By <?php echo get_post_meta($post->ID, "Author", true); ?></span>
<?php endif; ?>
</div><!--post-meta-->
<?php the_content(__("Continue reading »")); ?>
</article>
</li>
<?php endwhile; ?>
</ol>
<nav class="oldernewer cf">
<div class="newer"><?php previous_posts_link('Newer Entries »') ?></div><!--.newer-->
<div class="older"><?php next_posts_link('« Older Entries ') ?></div><!--.older-->
</nav><!--.oldernewer-->
<?php else: ?>
<h2>No posts to display</h2>
<?php endif; ?>
</div>
<?php get_footer(); ?>