Title: exclude not working
Last modified: April 17, 2021

---

# exclude not working

 *  [BCBulldog59](https://wordpress.org/support/users/bcbulldog59/)
 * (@bcbulldog59)
 * [5 years ago](https://wordpress.org/support/topic/exclude-not-working-11/)
 * I am trying to display 5 posts from my blog on the site’s main page, where is
   selects the 5 most recent posts AND skips over one post (ie the 5 posts displayed
   are from the most recent 6 posts , less the one excluded)
 * The code I am using looks like:
    <h2>LATEST NEWS</h2> [display-posts posts_per_page
   =”5″ exclude=”53415″ ignore_sticky_posts=”true”  include_excerpt=”true” excerpt_length
   =”20″ wrapper=”div” image_size=”medium” wrapper_class=”display-posts-listing 
   image-left”]
 * The output is showing 5 posts and is correctly ignoring sticky posts, but it 
   is not excluding the post that I want jumped over.
 * Can anyone tell me where my coding is in error?

The topic ‘exclude not working’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)

 * 0 replies
 * 1 participant
 * Last reply from: [BCBulldog59](https://wordpress.org/support/users/bcbulldog59/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/exclude-not-working-11/)
 * Status: not resolved