Title: Recent Posts Without Featured (Sticky) Posts
Last modified: August 20, 2016

---

# Recent Posts Without Featured (Sticky) Posts

 *  [alanpeto](https://wordpress.org/support/users/alanpeto/)
 * (@alanpeto)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-without-featured-sticky-posts/)
 * Is there a way to show only the 5 most recent posts BUT leave out of this loop
   any ‘sticky’ or featured posts? I’m at a loss. I can’t figure out what to put
   in my “<?php query_posts” section. Here is my current script:
 *     ```
       <!-- Begin New Articles -->
       <h3 class="widget-title">What's New</h3>
       <?php if (is_home()) : ?>
       <?php if (have_posts()) : ?>
       <?php query_posts("showposts=5"); // show one latest post only ?>
       <?php while (have_posts()) : the_post(); ?>
       <div id="recentarticleslist_images">
       <div class="recentarticleslist_images_pic"><?php if ( has_post_thumbnail() ) {
       					the_post_thumbnail( 'thumbnail' );
       				} ?></div>
       <div class="recentarticleslist_images_title">   <a href="<?php the_permalink(); ?>" rel="bookmark" title=""><?php the_title(); ?></a></div>
       <div class="recentarticleslist_images_date"><?php the_time( __( 'F jS, Y', 'linen' ) ); ?></div>
   
       </div>	
   
       <?php endwhile; ?><?php endif; ?>
       <?php endif; ?><!-- End New Articles -->
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [alanpeto](https://wordpress.org/support/users/alanpeto/)
 * (@alanpeto)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-without-featured-sticky-posts/#post-2703999)
 * I’ve googled and searched more on this, and I get stuck at the limit of choosing
   between showing 5 posts (limiting) or excluding sticky posts. Would appreciate
   any help or direction 🙂
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-without-featured-sticky-posts/#post-2704004)
 * `<?php query_posts("showposts=5&ignore_sticky_posts=1");`
 * [http://codex.wordpress.org/Class_Reference/WP_Query#Sticky_Post_Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Sticky_Post_Parameters)
 *  Thread Starter [alanpeto](https://wordpress.org/support/users/alanpeto/)
 * (@alanpeto)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-without-featured-sticky-posts/#post-2704015)
 * Thank you!! Worked perfectly!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Recent Posts Without Featured (Sticky) Posts’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [alanpeto](https://wordpress.org/support/users/alanpeto/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-without-featured-sticky-posts/#post-2704015)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
