Title: 2.1.9 doesn&#8217;t exclude posts
Last modified: November 28, 2024

---

# 2.1.9 doesn’t exclude posts

 *  Resolved [codepuncher](https://wordpress.org/support/users/krypsin/)
 * (@krypsin)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/)
 * We just updated to 2.1.9 but the search exclude functionality doesn’t work.
 * Posts have “Exclude from Search Results” enabled/checked, but they still show
   in search results.

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

 *  Thread Starter [codepuncher](https://wordpress.org/support/users/krypsin/)
 * (@krypsin)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18166669)
 * Additionally, 2.1.9 is also causing another critical/fatal error
 * PHP Fatal error: Uncaught TypeError: array_diff(): Argument #1 ($array) must 
   be of type array, null given in /www/xxx/wp-content/plugins/search-exclude/lib/
   controllers/class-backend.php:180
 * Stack trace:
 * #0 /www/xxx/wp-content/plugins/search-exclude/lib/controllers/class-backend.php(
   180): array_diff(NULL, Array)
 * #1 /www/xxx/wp-content/plugins/search-exclude/lib/controllers/class-backend.php(
   166): QuadLayers\QLSE\Controllers\Backend->save_post_ids_to_search_exclude(Array,
   false)
 * #2 /www/xxx/wp-content/plugins/search-exclude/lib/controllers/class-backend.php(
   308): QuadLayers\QLSE\Controllers\Backend->save_post_id_to_search_exclude(51389,
   false)
 * #3 /www/xxx/wp-includes/class-wp-hook.php(326): QuadLayers\QLSE\Controllers\Backend-
   >post_save(51389)
 *  [wundawoman](https://wordpress.org/support/users/wundawoman/)
 * (@wundawoman)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18166754)
 * Having the same problem. Also the settings page is just blank.
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18168040)
 * [@krypsin](https://wordpress.org/support/users/krypsin/) [@wundawoman](https://wordpress.org/support/users/wundawoman/)
 * We want to inform you that we’ve released a new version 2.2.0 of Search Exclude
   to address the issues that have been reported. We need you to update and give
   us your feedback so we can adjust any issues that may persist.
 * Best regards, Quadlayers Support Team.
 *  [wundawoman](https://wordpress.org/support/users/wundawoman/)
 * (@wundawoman)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18173538)
 * Hi there
   I’ve updated but unfortunately still can’t see the settings page, hidden
   pages are still visible in the search archives and random words trigger a ‘content
   is restricted error’.
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18175665)
 * [@wundawoman](https://wordpress.org/support/users/wundawoman/)
 * Hi mate,
 * Most users have confirmed that the issue was resolved with version 2.2.0. However,
   since you’re still experiencing the problem on your specific WordPress installation,
   we recommend submitting a support ticket through the following link: [https://urbiport1.atlassian.net/servicedesk/customer/portal/2](https://urbiport1.atlassian.net/servicedesk/customer/portal/2).
 * This will allow us to investigate further. It’s possible that the issue is related
   to a particular configuration in your theme, plugins, or WordPress setup.
   Best
   regards, Quadlayers Support Team.
 *  Thread Starter [codepuncher](https://wordpress.org/support/users/krypsin/)
 * (@krypsin)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18178549)
 * The problem still exists on 2.2.0.
 * I think this may be due to the priority number on the pre_get_posts action.
 * Since it is using the default number of 10, this is also used by other plugins.
 * If the priority was changed to a higher number, it would fix the issue by preventing
   other plugins overwriting at a lower priority.
 *  Thread Starter [codepuncher](https://wordpress.org/support/users/krypsin/)
 * (@krypsin)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18178569)
 * I have reported a bug to a separate plugin here: [https://wordpress.org/support/topic/post__not_in-hook-is-overriding-other-plugins/#new-topic-0](https://wordpress.org/support/topic/post__not_in-hook-is-overriding-other-plugins/#new-topic-0)
 * They override `post__not_in` which causes the issue.
 * However, this issue can still be fixed by Search Exclude simply by using a higher
   number for the priority on the hook so it will run after other plugins.
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18196843)
 * [@krypsin](https://wordpress.org/support/users/krypsin/) Most users have confirmed
   that the issue was resolved with version 2.2.0. However, since you’re still experiencing
   the problem on your specific WordPress installation, we recommend submitting 
   a support ticket through the following link: [https://urbiport1.atlassian.net/servicedesk/customer/portal/2](https://urbiport1.atlassian.net/servicedesk/customer/portal/2).

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

The topic ‘2.1.9 doesn’t exclude posts’ is closed to new replies.

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

 * 10 replies
 * 3 participants
 * Last reply from: [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/2-1-9-doesnt-exclude-posts/#post-18196843)
 * Status: resolved