Post Pic

How to disable automatic paragraphs in WordPress editor

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.

2 Responses

Feb 18 2013 06:01

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.

Regards,

Susan

Feb 28 2013 17:55

Thank you for this nice wordpress functions.php codes.

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required

WP Theme of the week

Sponsored Likebox