Auto Paragraph in Content and Excerpt Editors, How to Get Rid Of It?

WordPress and most of the editors from plugins or themes puts auto HTML tags, mostly
for the new line when user hits enter in editor window. That feature causes syntax errors of javascripts or css lines. This is how to get rid of it:

Save those lines in functions.php
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );

Start the Discussion!Leave a Reply