How to disable automatic paragraphs in WordPress editor

February 14, 2013 at 6:19 pm

By default, WordPress automatically creates paragraphs on your post content. While this is generally useful, you might want to change this behavior to fit your specific needs. Today’s recipe explains how you can disable automatic paragraphs.

Simply paste the following line into your functions.php file:

remove_filter('the_content', 'wpautop');

That’s all. Once you saved the file, WordPress will no longer create automatic paragraphs on your content.