Created
September 29, 2012 00:44
-
-
Save danlum/3802764 to your computer and use it in GitHub Desktop.
wordpress: stop <p></p>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Stop WordPress from adding those annoying paragraph tags */ | |
remove_filter( 'the_content', 'wpautop' ); | |
remove_filter( 'the_excerpt', 'wpautop' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment