Skip Navigation

[Resolved] Displaying only checked child taxonomies for a specific Parent Taxonomy

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am looking for a method to create a child View that could display only the selected child taxonomies for Parent Taxonomy Terms in a specific profile.

Solution:

In a single Profile post, you can setup a nested view:

https://toolset.com/forums/topic/displaying-only-checked-child-taxonomies-for-a-specific-parent-taxonomy/#post-1214058

Relevant Documentation:

This support ticket is created 5 years, 10 months ago. 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 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Furlan 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1213996

Hi Again,

I've one CPT called Profile. Every Profile has different taxonomies assigned to them, for example, Sports that he/she practices.

For example Sports practiced by John are:
- Air sports (x)
- Archery
- Catch games
- Climbing (x)
- Cycling (x)
- Bicycle (x)
- Skibob
- Unicycle (x)
- Combat sports
- Grappling
- Striking
- Mixed or hybrid
- Weapons
- Running

I'd like to display in a view, for example John, who practices Air Sports, Climbing and Cycling (including Bicycle and Unicycle that are actually child taxonomies of Cycling already selected in a Cred Form). The reason why this is so difficult for me is that child taxonomies terms must be displayed in a different column separated by commas.

I have created a Taxonomy View called All Sports that displays All Sports Taxonomy Terms. Now I am looking for a method to create a child View that could display only the selected child taxonomies for Parent Taxonomy Terms in a specific profile.

Any idea how could I achieve this?

#1214058

Hello,

in a single Profile post, you can setup a nested view:
1) Parent taxonomy view
- query terms of taxonomy "Sports practiced"
- filter by:
a) Taxonomy is set by the page where this View is inserted
b) Select taxonomy terms whose parent is None.
- in section "Loop Editor", display below child taxonomy view

2) Child taxonomy view
- query terms of taxonomy "Sports practiced"
- filter by:
a) Taxonomy is set by the page where this View is inserted
b) Select taxonomy terms whose parent is the value set by the parent view.
- and display term's information

#1214526

Solved.

Hello Luo,

It worked perfectly with the only difference that I had to change in 2) Child taxonomy view,
instead of b) Select taxonomy terms whose parent is the value set by the parent view, I used:
b) Taxonomy is set by the current post.

Thank you for your support.