DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

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.



  1. Hi,

    I’ve had reason to switch off automatic paragraphs on one of my blogs, and struggled to find out how to do so. It’s so simple when you know how!

    Thank you.



  2. Thank you for this nice wordpress functions.php codes.

Leave a Comment

Your email address will not be published. Required fields are marked *