Remove P and Br tags in WordPress posts.

Open functions.php in your currently active theme.

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
Please follow and like us:

Leave a Reply

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