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.
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)
This topic contains 20 replies, has 2 voices.
Last updated by 4 years, 8 months ago.
Assisted by: Beda.