Skip to content

Instantly share code, notes, and snippets.

@gmutschler
Created October 16, 2014 12:39
Show Gist options
  • Save gmutschler/a0abd4a0d2854e453dc6 to your computer and use it in GitHub Desktop.
Save gmutschler/a0abd4a0d2854e453dc6 to your computer and use it in GitHub Desktop.
Similar to get_the_content() but formatted
function get_the_content_with_formatting ($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
return $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment