[Gelöst] Unexpected result with checkboxes in custom search
This support ticket is created vor 4 Jahren, 3 Monaten. 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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
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).