Skip Navigation

[Resolved] displaying formatting from WYSIWYG field

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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 6 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 4 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2638425
Screen Shot 2023-08-28 at 1.25.08 PM.png
Screen Shot 2023-08-28 at 1.25.25 PM.png
Screen Shot 2023-08-28 at 1.25.38 PM.png

Hi - I have a dev site that is using a WYSIWYG field, but when I create my template, it's stripping all the formatting we use in the backend. What am I missing to get the formatting to carry over to the front end.

See screenshots

#2638959

Hi - can I get some help on this one? Thanks so much! Any support staff is fine!

#2638975

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Did you get a chance to try the solutions above?

Did some of them work for you?

Thank you, please let us know.

Mateus

#2638991

What do you mean? I don't see any solutions to try? Did you respond before? If so, I don't see your response.

#2639035

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Stacey,

We're having some minor instability today. Let me resend my reply so you can see it.

Thank you for reaching out to our support.

Based on similar cases we've handled before, a possible solution is to replace your existing "Single Field" block with a "Fields and Text" block and then use the [wpv-autop] shortcode to wrap around your field shortcode. This should help to preserve the formatting. Here's how to do it:

- Navigate to the edit screen of the content template where you've placed the WYSIWYG field.
- Remove the existing "Single Field" block for the specific field that you're concerned with.
- Replace it with a "Fields and Text" block.
- Within this new block, wrap your field shortcode with [wpv-autop] as follows:

[wpv-autop]
[types field='your-field-name-here'][/types]
[/wpv-autop]

The [wpv-autop] shortcode ensures that WordPress automatically formats your post, transforming double line-breaks into paragraphs and taking care of other text formatting tasks that WordPress typically handles.

If you've already ensured that your WordPress, theme, and plugins are updated, and the issue persists, then further troubleshooting may be needed. You might want to consider deactivating all non-Toolset plugins and switching to a default theme like Twenty Twenty to see if that resolves the issue.

Should the problem continue, we may require a clone or snapshot of your site for more in-depth investigation.

Please let us know how this works for you.

Best regards,
Mateus