Problem: I have several checkbox custom fields that store a yes or no value. I would like to be able to type the label of any checkbox into a text search field and find results that have that checkbox checked.
Solution: Relevanssi can help filter posts, including associated custom fields and taxonomy terms, using a text search. Unfortunately checkboxes are not supported in text-based searches. You can get around this if your checkbox field values match their labels. For example, if your checkbox for "Robotic" has a value "robotic" - see the screenshot attached. Add the checkbox fields to your post content, using Types or Views shortcodes. Hide them with CSS if you do not want the values to appear in your post. Then Relevanssi can will index those field values and include them in text searches. Here's an example of the post body content including hidden field values:
<div style="display:none;"> [types field="industry-field-slug" separator=","][/types] [types field="where-in-the-world-field-slug" separator=","][/types] </div>
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.