Title: Exclude Post not working correctly
Last modified: August 21, 2016

---

# Exclude Post not working correctly

 *  [Nick Pellegrino](https://wordpress.org/support/users/npellegrino/)
 * (@npellegrino)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/exclude-post-not-working-correctly/)
 * Hello,
 * The code below is not excluding the current post using ‘this’
    `<?php echo do_shortcode("[
   catlist id=17 numberposts=3 excludeposts=this]"); ?>`
 * But if i designate the post ID to the exclude it does like below:
    `<?php echo
   do_shortcode("[catlist id=17 numberposts=3 excludeposts=37903]"); ?>`
 * Any reason why ‘this’ is not removing the current post?
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

Viewing 1 replies (of 1 total)

 *  [hunter44](https://wordpress.org/support/users/hunter44/)
 * (@hunter44)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/exclude-post-not-working-correctly/#post-4691089)
 * Nick – you need to put quotes around the word “this” as in:
 * excludeposts=”this”

Viewing 1 replies (of 1 total)

The topic ‘Exclude Post not working correctly’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [hunter44](https://wordpress.org/support/users/hunter44/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/exclude-post-not-working-correctly/#post-4691089)
 * Status: not resolved