Title: Exclude posts dynamically
Last modified: May 16, 2020

---

# Exclude posts dynamically

 *  Resolved [kusachiy](https://wordpress.org/support/users/kusachiy/)
 * (@kusachiy)
 * [6 years ago](https://wordpress.org/support/topic/exclude-posts-dynamically/)
 * Hello,
 * I’m using get_crp_posts_id to insert list of related posts to web page.
    Some
   posts of my site have a list of connected posts (my own created feature). So,
   I need to exclude these posts from related posts list, depending on the current
   post. How can I pass to get_crp_posts_id the list of excluded ids of posts?

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [6 years ago](https://wordpress.org/support/topic/exclude-posts-dynamically/#post-12843456)
 * You can use exclude_post_ids to pass a set of ids to exclude.
 * Please see here for the full list of recommended parameters: [https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/](https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/)
 *  Thread Starter [kusachiy](https://wordpress.org/support/users/kusachiy/)
 * (@kusachiy)
 * [6 years ago](https://wordpress.org/support/topic/exclude-posts-dynamically/#post-12844462)
 * [@ajay](https://wordpress.org/support/users/ajay/), this works fine for me, thank
   you very much for reply and such a nice plugin!
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [6 years ago](https://wordpress.org/support/topic/exclude-posts-dynamically/#post-12858134)
 * [@kusachiy](https://wordpress.org/support/users/kusachiy/) Thank you for confirm.
   Do consider a review if you haven’t done so already
    -  This reply was modified 6 years ago by [Ajay](https://wordpress.org/support/users/ajay/).

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

The topic ‘Exclude posts dynamically’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/exclude-posts-dynamically/#post-12858134)
 * Status: resolved