Title: [Plugin: List category posts] Exclude current post
Last modified: August 20, 2016

---

# [Plugin: List category posts] Exclude current post

 *  [pp74](https://wordpress.org/support/users/pp74/)
 * (@pp74)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-exclude-current-post/)
 * Hi everybody.
    I installed the plugin [List category posts] (version 0.18.3) 
   to include at the bottom of a post a list of ‘similar’ posts (that is, posts 
   that have same category of the one currently showed). I used the following shortcode:
 * [catlist id=XX numberposts=5]
 * where XX=is the category of the current post (eg. 29).
    The result is the list
   of ‘similar’ posts, but that list includes the current one too. So I tried this
   one:
 * [catlist id=XX numberposts=5 excludeposts=<ID_OF_CURRENT_POST>]
 * but I don’t know how to set the value <ID_OF_CURRENT_POST> at runtime.
 * Any help is appreciated.

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

 *  [sobr-rf](https://wordpress.org/support/users/sobr-rf/)
 * (@sobr-rf)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-exclude-current-post/#post-2110037)
 * I have same problem ….
    [http://www.sobr-rf.ru/](http://www.sobr-rf.ru/)
 *  [abracadave](https://wordpress.org/support/users/abracadave/)
 * (@abracadave)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-exclude-current-post/#post-2110462)
 * Bump…
 * Anyone have any suggestions on this problem. How can we set this parameter?
 *  [sobr-rf](https://wordpress.org/support/users/sobr-rf/)
 * (@sobr-rf)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-exclude-current-post/#post-2110470)
 * please help us
    [http://www.sobr-rf.ru/](http://www.sobr-rf.ru/)[ [http://www.akrep-rf.ru/](http://www.akrep-rf.ru/)
 *  [strahd13](https://wordpress.org/support/users/strahd13/)
 * (@strahd13)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-exclude-current-post/#post-2110532)
 * figured this one out
    install the exec-php plugin add this code to post [catlist
   categorypage=yes excludeposts=<?php the_id();?>]

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

The topic ‘[Plugin: List category posts] Exclude current post’ 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [strahd13](https://wordpress.org/support/users/strahd13/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-exclude-current-post/#post-2110532)
 * Status: not resolved