Sauter la navigation

[Résolu] Display hierarchy from custom taxonomy in filter

This support ticket is created Il y a 3 années et 6 mois. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

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

Dernière mise à jour par marcB-6 Il y a 3 années et 6 mois.

Assisté par: Minesh.

Auteur
Publications
#2126105

Hi guys!
For a project we're building a filter in an overview page. This filter is based on a custom taxonomy. In this custom taxonomy we have parent, child and subchild categories. This hierarchy should be visible in the filter as well. How can we do such?
Thanks!
Marc

#2126297

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know first - are you using block view your classic view?

#2126433

Hi Minesh,

I am using classic view

Thanks

#2126447

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

To display the taxonomy filter terms in hierarchy - you should add the attribute output="legacy".

For example:

[wpv-control-post-taxonomy taxonomy="category" type="checkboxes" output="legacy" url_param="wpv-category"]

As you can see how attribute output="legacy" is added you should add it and it should display terms in hierarchy.

#2127477

Thanks a lot Minesh! We fixed it.
See you next time.