Created
May 7, 2013 13:52
-
-
Save ataylorme/5532730 to your computer and use it in GitHub Desktop.
Disable WordPress autop in shortcodes
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 wpautop from content | |
remove_filter( 'the_content', 'wpautop' ); | |
//add wpautop back to content after shortcodes are processed | |
add_filter( 'the_content', 'wpautop' , 99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment