Forums › Forums › Search & Filter Pro › “Exclude Post IDs” function not working
- This topic has 11 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) September 10, 2020 at 12:28 am #258971
The first result when searching “thank you” (https://sffilm.org/search/?_sf_s=thank+you) is https://sffilm.org/cfe-thank-you/, which is Post ID 9446 and is in the “Exclude Post IDs” array. After adding I’ve rebuilt the search and filter cache, cleared the site cache and cookies, but it keeps showing up in the results.
Trevor(Private) October 23, 2020 at 3:56 pm #263879You may need to use the
post__not_in
argument in our query (same method as used for forwp_query
) and use this in a function inside your child theme’s functions.php file.You would use this filter:
https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments
-
AuthorPosts