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?
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
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.