Skip to content

Instantly share code, notes, and snippets.

@robertdevore
Created October 9, 2015 13:06
Show Gist options
  • Save robertdevore/4f69de20080ba1772df6 to your computer and use it in GitHub Desktop.
Save robertdevore/4f69de20080ba1772df6 to your computer and use it in GitHub Desktop.
Stop the shortcode from displaying ABOVE all content in a post/page
<?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