Skip Navigation

[Resolved] Input logic is additive, not reductive

This support ticket is created 5 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by maxfieldB 5 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#1371143

Tell us what you are trying to do?
Hello, with *both* my checkmarks, and also for the multi-select, for a custom search on the homepage at hidden link - currently, the logic is that selecting multiple items causes the system to search for results that meet *both* conditions. Is there a way to change it so the system searches for *either* condition? In other words, multiple items would be looking for (AND), not (OR)

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

#1371257

Hi,

Thank you for contacting us and I'd be happy to assist.

As you noted, by default design, the multi-select type field is designed to apply the "AND" operator.

To change the condition to look for any of the selected option ( "OR" ), you can change the "equal to" operator to "in", in the query filter for the related field.

Example Screenshot: hidden link

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1371619

Thank you - this fixed it!