Skip Navigation

[Closed] Display Featured Image of Parent Post – Returns Unknown

This support ticket is created 2 years, 10 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 1 reply, has 2 voices.

Last updated by Shane 2 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2081761

Tell us what you are trying to do?
I am trying to use a shortcode to display a featured image of an article post that is parented to a product. I am able to properly pull the parent post Title and Excerpt, but when I try to pull the image I get Unknown as a returned value. Here is the shortcodes I am using.

Title:
<h2>[wpv-post-link item="@featured-post.parent"]</h2>
[Returns:]
<h2><a href="hidden link">Best Management Practice for Yellow Nutsedge Control</a></h2>

Post Text
<p>[wpv-post-excerpt item="@featured-post.parent" length="45" count="word" more="..."]</p>
[Returns:]
<p>Best Management Practice for how to identify and effectively control yellow nutsedge (also known as nutgrass or watergrass).</p>

Post Image:
<a href='[wpv-post-url item="@featured-post.parent"]'><span class="et_pb_image_wrap "><img src="[wpv-post-featured-image item='@featured-post.parent' output='url' size='medium']" alt="" title=""></span></a>
[Returns:]
<a href=""><span class="et_pb_image_wrap "><img src="" alt="" title=""></span></a>

#2081907

Shane
Supporter

Languages: English (English )

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

Hi April,

Thank you for getting in touch.

Can you send me a screenshot of the elements on the backend so that I can see how you've added them to the page's template ?

It would appear that the shortcode isn't rendering correctly when nested.

Thanks,
Shane

The topic ‘[Closed] Display Featured Image of Parent Post – Returns Unknown’ is closed to new replies.