Remove p tag *insertion but keep html p tags
-
I need to post HTML code as the_content for static pages on my website. At least until I can automate some of the code. There are several pages with
<p>
tags which must be there to ensure paragraph formatting.What I definitely don’t need is wordpress automatically inserting its own
<p>
tags, and consequently breaking my pages.The only thing my research churns up is to use
remove_filter( 'the_content', 'wpautop' );
. Currently I am using this, because the pages look better with paragraphs jumbled together than the graphical layout being utterly stomped by unexpected spacing.How can I disable the p tag insertions by wpautop, and keep my own p tags?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove p tag *insertion but keep html p tags’ is closed to new replies.