Skip Navigation

[Resolved] How to set OR relationship within custom field filter

This thread is resolved. Here is a description of the problem and solution.

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 7 years, 3 months 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.

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)

This topic contains 4 replies, has 2 voices.

Last updated by marcB-6 7 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#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