Created
September 2, 2014 16:35
-
-
Save awhedbee22/bfc6f67e46030386ff3f to your computer and use it in GitHub Desktop.
Remove <p> tags and keep <br /> in wordpress. Place in functions.php
This file contains hidden or 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
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