Title: 4.0 Breaks Exclude Posts Functionality
Last modified: April 22, 2025

---

# 4.0 Breaks Exclude Posts Functionality

 *  Resolved [pgray](https://wordpress.org/support/users/pgray/)
 * (@pgray)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/)
 * Hi Ajay,
 * Thanks for a great plugin – IMO, the best on the market, by far. Upgraded to 
   v 4.0 and now all posts display in the related posts widget – even those that
   have been excluded from displaying in related posts. Rolled back to 3.6.2 and
   we’re good.
 * Please take a look and fix this in the next release.
 * Thanks!

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18428702)
 * Hi,
 * Thank you for the kind words. Is it just the normal widget that you added in 
   which you’re seeing this problem?
 * I think there might be a bug but I need to narrow this down.
 *  Thread Starter [pgray](https://wordpress.org/support/users/pgray/)
 * (@pgray)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18429156)
 * The problem is with both the widget and shortcode. It started with 4.0 and persists
   with 4.0.1.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18430945)
 * Thank you for confirming. One more question – where (all) are you setting the
   exclude post ids?
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18430975)
 * [@pgray](https://wordpress.org/support/users/pgray/)
 * To confirm, I have this fixed now in my GitHub repository.
 * [https://github.com/WebberZone/contextual-related-posts/commit/f6380a0aaca667581103942f8b48d0f4f2e74aab](https://github.com/WebberZone/contextual-related-posts/commit/f6380a0aaca667581103942f8b48d0f4f2e74aab)
 * I am investigating another potential issue. I’ll aim to release a bug-fix version
   this week.
 * In the meantime, if you would like to urgently make a change and are also comfortable
   editing the files, you can make the edit (which is a line) in class-crp-core-
   query.php, as you can see in the link above.
 *  Thread Starter [pgray](https://wordpress.org/support/users/pgray/)
 * (@pgray)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18431326)
 * Thanks, Ajay, I will wait for the official version when it is released. No rush
   from our side because we have rolled back to 3.6.2 so the production site is 
   working as expected.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18431959)
 * [@pgray](https://wordpress.org/support/users/pgray/)
 * To confirm that I’ve pushed through the fixed version 4.0.2.
 *  Thread Starter [pgray](https://wordpress.org/support/users/pgray/)
 * (@pgray)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18434887)
 * Thanks, Ajay! We will test it out and let you know if there are any issues with
   it.

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

The topic ‘4.0 Breaks Exclude Posts Functionality’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [pgray](https://wordpress.org/support/users/pgray/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/4-0-breaks-exclude-posts-functionality/#post-18434887)
 * Status: resolved