Skip Navigation

[Resolved] Avoid automatic inserts in post body

This support ticket is created 5 years, 10 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 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1205695

I want to show raw post body. But instead of this I have automatic insertion of <p> and <br> in body content.
I use custom layout with body insertion as:

[wpv-post-body view_template="None" suppress_filters="true"]
or
[wpv-post-body view_template="None"]

And for both cases it is not raw but with additional <p> or <br> insertion, which is actually broke formatting.

How could I fix it?

#1205968

Hello,

There is a misunderstanding:
For "post body", it is WordPress inserted the <p> or <br> tags in post body, the shortcode [wpv-post-body view_template="None"] can only display them, there isn't such a built-in feature of raw output option: remove those <p> or <br> tags in "post body".

See our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.