WordPress insert automatically paragraph tags <p> and </p> for separate content breaks within a post or page. In the visual or HTML view of the post content in editor, paragraph tags never appear. Of course this is generally a useful feature. But sometimes it creates a lot of troubles for programmers and template designers.

If, for some reason, you want or need to remove this automatic behavior, you can add the following line of code into your functions.php file.

remove_filter('the_content', 'wpautop');

You may also be interested in our other articles on nofollow wordpress tag cloudalign divs horizontally, improve wordpress jpeg image quality and force auto update of wordpress.

Leave a Reply