Skip Navigation

[Resolved] Unable to load parent post taxonomy using recommended shortcode

This support ticket is created 3 years, 11 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/Karachi (GMT+05:00)

Author
Posts
#1865275

Tell us what you are trying to do?
I want to show parent taxonomy in the child template. I am using the shortcode: [wpv-post-taxonomy item='@{project-prompt-to-project-submission}.parent' type='project-category' separator=', ' format='name' show='name' order='asc']

item should get data from the parent post but the shortcode results blank. When I remove the item variable, the short code runs for child post type.

Is there any documentation that you are following?
Item attribute doc: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
wpv-post-taxonomy doc: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy

Can you please help?

#1865455

Hi,

Thank you for contacting us and I'd be happy to assist.

Can you please make sure that the relationship slug "project-prompt-to-project-submission" is correct and also remove the curly brackets from the item attribute:


[wpv-post-taxonomy item='@project-prompt-to-project-submission.parent' type='project-category' separator=', ' format='name' show='name' order='asc']

Note: the curly brackets in the documentation are used to show that the enclosed part needs to be changed.

regards,
Waqar

#1865743
relationship slug.png

Still not working. Please find the screenshot for the relationship

I used this code: [wpv-post-taxonomy item='@project-prompt-to-project-submission.parent' type='project-category' separator=', ' format='name' show='name' order='asc']

#1865835

My issue is resolved now. Thank you!