Created
June 4, 2014 08:12
-
-
Save jakefentress/fdc48cf09103aa276167 to your computer and use it in GitHub Desktop.
Remove auto paragraphs in shortcodes in WordPress
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
// move wpautop filter to AFTER shortcode is processed - this is so shortcodes do not get processed | |
remove_filter( 'the_content', 'wpautop' ); | |
add_filter( 'the_content', 'wpautop' , 99); | |
add_filter( 'the_content', 'shortcode_unautop',100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment