Skip Navigation

[Résolu] How to set OR relationship within custom field filter

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I would like to set up a search filter that will show results that have any of the selected options, not necessarily all of the selected options.

Solution: Use the Query Filter criteria "in" instead of "equal to". For example, "the field is a string that is in the following". See the attached screenshot.

Relevant Documentation: https://toolset.com/documentation/user-guides/front-page-filters/

This support ticket is created Il y a 7 années et 3 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

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

Dernière mise à jour par marcB-6 Il y a 7 années et 3 mois.

Assisté par: Christian Cox.

Auteur
Publications
#560665

I have jobs with custom field work location I want to filter the jobs by that work location for that I created the custom location filter it is working correctly only when we select one location from that filter.

But I want to display that jobs if a user selects two or more location from the filter. But it is not working.
What I understand that I have already set OR field relationship in Query filter section but still it is not working.

#560903

Hi, can you share a screenshot showing the Query Filter and Filter Controls for this View? Is the View online somewhere I can take a look?

#561153
2017-08-18_1353.png
2017-08-18_1352.png

Here is screenshot that you want

#561676
Screen Shot 2017-08-20 at 11.09.50 AM.png

Hi, you should edit your Query Filter to use the criteria "the field is a string that is in the following" instead of "equal to". This will allow you to test any of the possible values. Please see the attached screenshot for an example.

#563072

Hii,
This issue is solved.
Thanks for your support