- This topic has 1 reply, 2 voices, and was last updated 6 years, 12 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 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 › Post Meta Granular Field Relationship AND / OR Question
Tagged: and/or, Field relationships, multi select
Hello,
I have a question that I hope is not too difficult to answer. 🙂
Here is my scenario:
My question is: Is there a way to get more granular control over each field relationship? So for instance could I somehow change the query string or filter the output to allow the first 2 multi-select fields be related by AND then the 3rd multi-select field to be related by OR? Instead of just generally setting all fields to “AND”/”OR”?
Could I use the Filter Input Object or Edit Query Arguments filters to accomplish this?
Thanks!
-BB
I think it might be possible using the Edit Query Arguments filter to do this. I do not recall a user asking this and achieving it, so I am unsure there are any snippets you might use, but a working knowledge of how WordPress structures its arguments would be need to code this yourself. This search would likely yield any snippets posted in our forum:
https://support.searchandfilter.com/forums/search/sf_edit_query_args/