Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created October 9, 2012 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/3862103 to your computer and use it in GitHub Desktop.
Save billerickson/3862103 to your computer and use it in GitHub Desktop.
<?php
/**
* Display the post content.
*
* @since 0.71
*
* @param string $more_link_text Optional. Content for when there is more text.
* @param bool $stripteaser Optional. Strip teaser content before the more text. Default is false.
*/
function the_content($more_link_text = null, $stripteaser = false) {
$content = get_the_content($more_link_text, $stripteaser);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]&gt;', $content);
echo $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment