Problem:
How can we create a list of Taxonomy Terms that are respecting the hierarchy of the terms as set in the backend?
Solution:
You can create a Parent View displaying all Terms without a parent - then as many Views as you have hierarchical layers
So if you have 2 more child terms (maximally) for each parent you'd add 2 more Views, each time querying the Terms that have as parent Term the one set in the "View where this View is inserted"
Then, insert each view into each other, so the Parent View holds a shortcode calling the next child view and that view loop, in turn, has a shortcode to another term child view, and so on.
Then you can insert the Parent View in a page and will see all terms output in the hierarchically correct order.
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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
Ce sujet contient 20 réponses, a 2 voix.
Dernière mise à jour par Il y a 4 années et 9 mois.
Assisté par: Beda.