Passer la navigation

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

This support ticket is created Il y a 4 years, 6 months. 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.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par darcyR Il y a 4 years, 6 months.

Auteur
Publications
#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?
lien caché

#2235883

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01: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!