Hi,
My search criteria has several options.
1. Search by company
2. Filter by category
3. Search by state
How can I join the search options by an AND condition? I am especially interested in being able to join the checkboxes with the search by state dropdown.
By default all criteria must match, so they are connected via an AND logic, but there are a few things that can affect that.
I recommend this exact configuration: https://i.imgur.com/4v5Bxzg.png
This will ensure that all criteria must match, as well as no matches from unset field values are allowed. (posts without taxonomy terms, or any missing custom field values)
Okay, in that case I think it’s still the correct one, aside from one minor change: https://i.imgur.com/94p5OO5.png
This will ignore the unchecked values from the checkbox, and will force to match at least one of the checkboxes.
From looking at the front-end I think it might be the “Search by state”
The first value is set to “none” – which does not match anything. The filter value should be emtpy, and my guess is that currently it looks something like none||Select a state. On the custom field filter setting, edit the “Search by state” and make sure the first value is changed to this: