Navigation überspringen

[Gelöst] I want to display child taxonomy list by parent taxonomy id in view

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:I want to display a list of parent terms, with a list of child terms included for each parent term.

Solution: Use nested Views to achieve this type of nested list.

100% of people find this useful.

This support ticket is created vor 5 Jahren. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von vimalS vor 5 Jahren.

Assistiert von: Christian Cox.

Author
Artikel
#1430927

Hi

I want to display child texonomy list by parent texonomy id in view

Thanks

#1431635

You can do this with a nested View.
- Create a View of this taxonomy filtered by taxonomy term ID
- Set the parent term ID in the Query Filter, or set is as a shortcode attribute
- Click "Skip Wizard" for now and save the View
- Create another View of this taxonomy, filtered by taxonomy term parent, where the parent is set by the parent taxonomy View
- In the loop, insert the term name or term link shortcode to display information about each child term
- Place this View inside the loop of the parent term View
- Place the parent term View on your site. If you set the parent term Query Filter using a shortcode attribute, you must pass the parent term ID into the parent term View shortcode.

#1433725

My issue is resolved now. Thank you!