Created
October 9, 2015 13:06
-
-
Save robertdevore/4f69de20080ba1772df6 to your computer and use it in GitHub Desktop.
Stop the shortcode from displaying ABOVE all content in a post/page
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 | |
/* | |
* This code stops your shortcode from displaying | |
* at the top of your WordPress page or post | |
*/ | |
ob_start(); | |
// Do stuff | |
$output_string=ob_get_contents(); | |
ob_end_clean(); | |
return $output_string; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment