Skip Navigation

[Resolved] I have a problem with markup in wysiwyg fields that get shown in a layout

This thread is resolved. Here is a description of the problem and solution.

Problem: The line breaks added in my WYSIWYG field are not shown on the front-end of my site.

Solution: We are aware of an issue with automatic paragraphs in certain WYSIWYG field circumstances, and we're working to resolve that. Until that time, you can use the wpv-autop tag along with output='raw', like this:

<div class="regionaal-contact-tekst">[wpv-autop][types field='regionaal-contactblok' output='raw'][/types][/wpv-autop]</div>
This support ticket is created 6 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 8 replies, has 2 voices.

Last updated by glenn 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1186159
result.png
layout-block.png
wysiwyg.png

I am trying to:
get the markup from the wysiwyg editor to show in the front end.

Link to a page where the issue can be seen:
hidden link

I expected to see:
Paragraphs to show up if if they are present in the wysiwyg.

Instead, I got:
One long line of text

#1186199

Hi, sorry but I'm not able to log in with these credentials. Please add the suppress_filters attribute to the Types field shortcode, like this:

[types field='regionaal-contactblok' suppress_filters='true'][/types]

Let me know if this does not solve the problem and I will try to download your Duplicator package again. Google currently says I don't have access.

#1186664

Hi Christian,

thank you for your reply. Unfortunately your suggestion does not solve the problem. Also i think the supress filters should prevent formatting if i understand correctly? But i want to have the formatting.

I put it on dropbox now:

hidden link

KInd regards,

Glenn Windhouwer

#1186668

OW maybe also a good thing to note. If i save the page without saving the layout it generates a lot of paragraphs. I think these come from the wysiwyg field in the layout. Because if i remove all enters they are gone.

#1187676

Okay thanks for the report, I will ask my 2nd tier team to investigate the issue and let you know what I find out.

#1188968

Hi Christian,

thank you for your reply. I look forward to hearing form you.

I also wanted to tell you that i found that in an other layout block on the same page the links disappear when i make an adjustment and only save the page. When i same the layout too the links reappear again. I think this has to do with the same issue so it might be relevant for the debug team.

Kind regards,

Glenn

#1189076

Thank you. For now, my 2nd tier team has recommended using this code in your Visual Editor cell:

<div class="regionaal-contact-tekst">[wpv-autop][types field='regionaal-contactblok' output='raw'][/types][/wpv-autop]</div>

Uncheck "Disable automatic paragraphs" and uncheck "Disable the_content filter". I will keep you posted as I receive more information about this issue.

#1190502

My issue is resolved now. Thank you!

#1192096

Hi Christian,

i spoke to soon. This solution worked for another site where i had the same issue. But for this site it still does not work. It seems some kind of bug because it just throws p tags everywhere if i only save the page. When i also save the layout, they are gone. But this is not workable since my client should not be bothered with layouts.