Skip Navigation

[Resolved] Combined shortcodes

This support ticket is created 5 years, 4 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
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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by romanB-3 5 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1287837

Hello,
I need to display the list of children terms of a specific term based on its slug.
In order to do this, I have :
- a view listing all children terms of a parent term ;
- a view with the parent term based on its ID ;
- a shortcode calling the ID based on its slug.

[wp_tax_id slug='[wpv-post-slug]' taxonomy='faq_category']

returns "24", which is the right term ID for the slug "professionnels", which is also the page's slug.

[wpv-view name="terme-actuel-pour-termes-enfants" parentfaq="24"]

returns the right children terms of the parent term "professionels".
So in my understanding,

[wpv-view name='terme-actuel-pour-termes-enfants' parentfaq='[wp_tax_id slug="[wpv-post-slug]" taxonomy="faq_category"]']

this shortcode should also return the right children terms of the parent term "professionels".
But the shortcode breaks down and I only get

"]

as a result...

Thank you.

#1287865

Did you register wp_tax_id in Toolset > Settings > Frontend Content > Third-party shortcode arguments?

#1287869

My issue is resolved now. Thank you!