Ramin Hossaini

Stop WordPress from adding p and br tags


Even without the visual-editor, WordPress has a habit of adding <p> and <br/> tags

Add this to your templates/pages/whatever and it should take care of the problem.

<?php remove_filter('the_content', 'wpautop'); ?>

Leave a Reply

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