Skip Navigation

[Resolved] Filter taxonomy by parent id from shortcode

This support ticket is created 2 years, 3 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.

This topic contains 1 reply, has 1 voice.

Last updated by beatR 2 years, 3 months ago.

Author
Posts
#2426731

Hi

i would like to output the child taxonomy terms filtered by their parent id, passed in via views shortcode.

according to this article, this should be possible:
https://toolset.com/forums/topic/i-want-to-display-child-texonomy-list-buy-parent-texonomy-id-in-view/
"Set the parent term ID in the Query Filter, or set is as a shortcode attribute"

unfortunately, it's not mentioned, what is the name of the shortcode parameter to use. can you shed some light on this?

Thank you!

#2426783

I found one possible solution:
Wrap the view into another view that filters by term-id. there it's possible to set the shortcode parameter. inside this loop call the view with the child items, set to filter by the parent view.