Created
April 10, 2014 19:46
-
-
Save DrewAPicture/10416268 to your computer and use it in GitHub Desktop.
Attempting to concatenate something in-line onto the end of the post content, wpautop insists on adding a line break between them. This gets around that.
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
<?php | |
remove_filter( 'the_content', 'wpautop' ); | |
$content = wpautop( $content, false ); | |
echo apply_filters( 'the_content', $content ); | |
add_filter( 'the_content', 'wpautop' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment