Passer la navigation

[Résolu] Taxonomies and custom fields filters as checkboxes inside dropdowns

This support ticket is created Il y a 4 years, 11 months. 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

Fuseau horaire du supporter : Africa/Casablanca (GMT+01:00)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par Helena Gwyn Il y a 4 years, 10 months.

Assisté par: Jamal.

Auteur
Publications
#2120037

Is it possible to create a filterstructure as shown on lien caché 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 lien caché

#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.
lien caché

#2123229

I'll give it a try!