Saltar navegación

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

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

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane 4 years, 12 months ago.

Asistido por: Shane.

Autor
Mensajes
#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>enlace oculto</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:
enlace oculto
[Returns:]

#2081907

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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

El debate ‘[Cerrado] Display Featured Image of Parent Post – Returns Unknown’ está cerrado y no admite más respuestas.