[Resolved] Unexpected result with checkboxes in custom search
This support ticket is created 4 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have a custom post type that have a several custom fields. One of them are checkboxes.
The custom search to show that custom post types is configured AJAX results update when visitors change any filter values.
When I click in one checkbox works fine and the results are ok. If I click 2 checkboxes that works wrong because the results are working with relation OR not AND.
How can I solve this?
Example:
Restaurants with wifi: 2 restaurants
Restaurants with terrace: 1 restaurant
Restaurants with wifi + terrace = 1 restaurant (AND) but custom search show 3 restaurants (OR).