Saltar navegación

[Resuelto] Post excerpt in view shows Divi shortcodes instead of content

This support ticket is created hace 1 año, 10 meses. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Zona horaria del colaborador: Europe/London (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Nigel hace 1 año, 10 meses.

Asistido por: Nigel.

Autor
Mensajes
#2640739

Hi,

I'm building a custom post archive on this Divi website, but the excerpt shows the shortcodes Divi uses for their layout instead of the post content. See enlace oculto.

#2640929

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

I think that is unavoidable when automatically generating the excerpts.

Divi uses shortcodes in the post content for all of its layout (rows, columns etc.) and modules.

If no manual excerpt is available and an excerpt is automatically generated to a limited length (of characters, or words), the likelihood is that some Divi shortcodes will be truncated and incomplete. Complete shortcodes would be rendered before the excerpt is output, but the truncated Divi shortcodes cannot be rendered, they are broken, and so they are displayed as if they are part of the normal text.

And because the truncation could happen anywhere within a Divi shortcode, it is not possible to provide some code workaround.

The only solution is to provide manual entries for the excerpts when editing the original posts.

#2640937

Hi Nigel,

Ok, I was hoping there was a block which supported some kind of raw output which would just show the text, but manual excerpts is a good workaround so thanks for that.