- This topic has 2 replies, 3 voices, and was last updated 7 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › I'd like to exclude specific items
Instead of including terms, which is what our plugin does, you want to exclude them. I am sorry, but this is not a feature of our plugin.
I think it might be possible though, with custom coding. You would need to use the https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments filter.
This post discuss something similar:
https://support.searchandfilter.com/forums/topic/include-and-exclude-category/page/2/
BUT, in your case, you have to change the 'operator' => 'IN', part of the query for the field to 'operator' => 'NOT IN',
I will ask Ross, the plugin developer, if he has some further thoughts on this.
Hi Kie
What Trevor says is correct, you can use our filter sf_edit_query_args to restrict the results to certain categories or taxonomies, or exclude them, for example.
Let us know how you get on.
Thanks