How to remove <p> tags added by WordPress

WordPress automatically converts your double line breaks into paragraphs. Here is how to disable this feature for all your posts.

Open these 3 files:

/wp-content/themes/yourtheme/index.php
/wp-content/themes/yourtheme/single.php
/wp-content/themes/yourtheme/archive.php

Insert the following below the line get_header();

// remove <p> tags automatically inserted by WordPress
remove_filter('the_content', 'wpautop');

For reference, see:

WordPress documentation on wpautop()
WordPress documentation on remove_filter()
WordPress documentation on the_content()