Title: Exclude current post in post list
Last modified: June 11, 2021

---

# Exclude current post in post list

 *  Resolved [wpcursus](https://wordpress.org/support/users/wpcursus/)
 * (@wpcursus)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/exclude-current-post-in-post-list/)
 * Great plugin!
    Question: Is it possible to exclude the current post in a post
   list made with the ultimate shortcodes plugin?
 * For example:
    If a shortcode like this is on a few posts I don’t want the post
   on which the list is visible to be shown on list. Something like exclude current
   post ID.
 * [su_posts template=”templates/list-loop.php” posts_per_page=”5″ taxonomy=”post_tag”
   tax_term=”42″ orderby=”rand”]
 * This would be very handy for a related posts function.
    Is this possible? If 
   yes, how? If not. I think this would be a great feature in a future update.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-current-post-in-post-list%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Exclude current post in post list’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [WP Shortcodes Plugin — Shortcodes Ultimate](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [wpcursus](https://wordpress.org/support/users/wpcursus/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/exclude-current-post-in-post-list/)
 * Status: resolved