Skip Navigation

[Closed] P tags are stripped in frontend from bodytext field

This support ticket is created 4 years, 8 months 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1560383

The content bodytext is shown as a long continuing one paragraph even the paragraphs are visible in backend visual mode. In text mode there are no <p> tags but two linebreaks. I think this is the normal/classical WP way to show paragraphs. If I modify in text mode adding the <p> tags, they start to show in frontend. If I switch back to visual mode and save, tags are again gone.

#1561011

Hello,

What is the bodytext field are we talking about? is it post content?
If it is, the problem you mentioned above is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page/post URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1562185
Screenshot 2020-03-25 at 7.47.42.png
Screenshot 2020-03-25 at 7.46.07.png

Hi Luo. The field is the standard post body/content yes. I came to think if Toolset block type had anything to do with it and it turned out that changing the type fixed the problem.

The problem existed with block type "Single field" and disappeared with block type "Fields and text". Screenshots attached.

#1562255

I have tried it in my localhost with a fresh WordPress installation, it works fine, all HTML p tag are outputted from post content field correctly.

So the problem you mentioned above is abnormal, it might be a compatibility issue, as I mentioned above, please check as I mentioned above:
https://toolset.com/forums/topic/p-tags-are-stripped-in-frontend-from-bodytext-field/#post-1561011

Private message box enabled again.

The topic ‘[Closed] P tags are stripped in frontend from bodytext field’ is closed to new replies.