Layout builder - Dynamic excerpt (Keep original text format)

Hi,

I am creating a new website, and I imported the old blog posts to the new website.
I am creating a Layout builder for the blog posts and in the text area that is tagged {{dc:post:excerpt}}, the text is not formatted, just comes in big block of text.

How can I keep the original format from the text?

Thank you

Hello @PanInternational,

Thanks for writing to us.

A WordPress excerpt is basically a summary of a longer article, excerpts allow you to slim this down by showing short summaries instead of the full text of each post. By default, WordPress generates excerpts by simply selecting the first 55 words of a post. Please note that the excerpts in WordPress generates the plain text while displaying excerpt, and it removes all shortcodes and HTML tags.

Hope it helps
Thanks

Hi @prakash_s,

Thank you for your explanation.
Unfortunately it didn´t help much.

Let me rephrase my question, if im using the layout builder for blog posts that will dynamically fill the content. How can I keep the original formatting (done on the post back-end)?

Thank you

Hello @PanInternational,

Yes, you may use the paragraph or any HTML tag to format it in the layout builder with dynamic content code.

Thanks

Hi @prakash_s

Thank would be great but it´s not what is happening.
The only way i know to fetch the original content to the Layout builder is by using the dynamic excerpt.
Is there another way, that fetches also the format?

This is what it looks like. (WP post back-end on the left and Blog post front-end on the right)

Hello @PanInternational,

The idea of using dynamic content is to get the plain content and then output it anywhere you want it. This is one of the reasons why the styling or formatting of the post content will not be displayed. If you have more elements in the post content, it is best that you create the content using the WP Editor or by the Cornerstone or Pro Editor.

Be also advised that if you have created a custom single layout, there is the “The Content” dynamic element that you can use to display the post content.

Hope this makes sense.

Hi @ruenel

Yes, I am aware of that. Totally forgot about the content element.
Now, it´s fetching the formatting as well.

Thank you

You are welcome @PanInternational

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.