Post editor stripping P tags
-
Disclaimer: I’m not fussing about the editor losing HTML tags when switching between text/visual modes. It’s stripping them from posts I’ve written/pasted in to the text mode, then immediately published…
I’m struggling to get the post editor to stop stripping p tags from my code. I’ve disabled WP from adding paragraph tags automatically via this code in my functions file:
remove_filter( 'the_content', 'wpautop' );
However, despite this now it’s removing ALL paragraph tags. When I type or paste in a post with paragraph tags and click publish/update, it strips the paragraph tags out and yet leaves all other code (bold, italics, divs, etc) intact. Disabling plugins, switching themes, and even trying plugins that let you copy and paste in code directly fail to work. Help?
- The topic ‘Post editor stripping P tags’ is closed to new replies.