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.
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:
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.