Skip Navigation

[Resolved] Taxonomies and custom fields filters as checkboxes inside dropdowns

This support ticket is created 3 years, 6 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by Helena Gwyn 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#2120037

Is it possible to create a filterstructure as shown on hidden link where every tag, categorie or custom field are checkboxes in a dropdown?

#2120047

That's not possible as a built-in feature. But it can be implemented using some custom code or a Javascript library.

Check this online thread on how to create checkboxes inside dropdowns https://stackoverflow.com/questions/19206919/how-to-create-checkbox-inside-dropdown
Or this Bootsrap plugin hidden link

#2123145

Thank you!
Do I need to implement this outside of Toolset with complete custom coding or can this be done inside the legacy editor since I want to load taxonomies and categories and filter a view or archive.

#2123227

Whether you build the view or archive with the legacy editor or the blocks editor, you can implement the checkboxes inside the dropdown, using either a custom code solution, like the ones discussed below. Note that you will need to adapt the CSS code to Toolset classes:
https://stackoverflow.com/questions/19206919/how-to-create-checkbox-inside-dropdown

Or using a Javascript library like this one, and you will have to use Toolset classes in the Javascript code to initialize the multiselect.
hidden link

#2123229

I'll give it a try!