Skip Navigation

[Resolved] Is it possible to use OR in the query filter instead of how it’s currently AND?

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by darcyR 4 years, 1 month ago.

Author
Posts
#2235783
CCA4F177-D23F-4608-94E3-0FBD449687D4.jpeg

Tell us what you are trying to do?
I’m trying to figure out how to change the query filter relationship from AND to OR

Is there any documentation that you are following?
I can’t seem to find it.

Is there a similar example that we can see?
None for now but basically having OR instead of AND for the filters. There’s few items on the list and having AND produces limited result.

What is the link to your site?
hidden link

#2235883

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

It is necessary to add some code to switch from AND to OR, the setting is not available in the UI.

Please see this thread for an example of the kind of code required: https://toolset.com/forums/topic/user-view-with-or-in-the-query-filter/#post-2234021

#2235989

My issue is resolved now. Thank you!