[Resolved] Add search filter to check if field has content
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to: have an available checkbox on a custom search that filters whether or not a certain WYSIWYG field has content.
I know taxonomies can easily search for content via toggling checkboxes. However, when adding a filter, I didn't see the ability to display based on whether a field has content. Is there an easy way to do this?
Kind of. Basically, there's a CPT of profiles. Each person's profile has an optional field for consultations. In a custom search, I want one available filter to be "offers consultation", which searches and displays profiles that have any content in the consultations field.
I see a two-step way to do it: make a taxonomy for consultations > Offered, then have a filter for that. Just curious to see if there's a more streamlined way to do it.