Skip Navigation

[Resolved] Display list of terms under given parent term

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

Problem:

Dynamically filter views based on Taxonomy Parent.

Solution:

Unfortunately the parent can only be specified by one of 3 things. The page where the view is on, the archive where the view is on or a static selection of the parent on the view filter itself.

Is it that you wanted the view to be filtered by some shortcode parameter? If so then for your taxonomy view this will require a feature request.

0% of people find this useful.

This support ticket is created 5 years, 8 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by deanL 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1225131

Is it possible for me to use Views to output list of terms under a parent term.

For example:
[wpv-view name="countries-by-region" wpvregion="Asia"]
This would output a list eg:
China
India
Japan
Thailand
etc...

Also, I only want to display terms that have posts associated with.

Thanks in advance!

#1225299

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

parent filter.PNG

Hi Dean,

Thank you for contacting our support forum.

This is possible but I first need to ask how will the parent taxonomy term be provided. Our Views filter can only display the child terms based on 3 things. See Screenshot

Take a look at our documentation here as it would require the use of a nested view.
https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/#taxonomy-view-within-taxonomy-view

Please let me know if this helps.

Thanks,
Shane

#1225328

Hi Shane, sorry for lack of context.

First of all, I have post categories that go like this:
First level being region
Second level being the countries within the region

For example, I have:
Asia
-- China
-- India
-- Japan
-- Thailand
etc...

The view I want to create should let me specify the region name as parameter, then it outputs countries under the specified region.

I hope I have explained this well enough?

#1225410

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Dean,

I see what you mean now.

Unfortunately the parent can only be specified by one of 3 things. The page where the view is on, the archive where the view is on or a static selection of the parent on the view filter itself.

Is it that you wanted the view to be filtered by some shortcode parameter? If so then for your taxonomy view this will require a feature request.

Thanks,
Shane

#1225540

My issue is resolved now. Thank you!