Languages: English • 日本語 中文(简体) • (Add your language)
Retrieve the post content. (Must be used in a Loop)
An important difference from the_content() is that get_the_content() does not pass the content through the 'the_content' filter. This means that get_the_content() will not auto-embed videos or expand shortcodes, among other things.
<?php get_the_content( $more_link_text, $stripteaser ) ?>
<?php $content = get_the_content('Read more'); print $content; ?>
If you use plugins that filter content (add_filter('the_content')), then this will not apply the filters, unless you call it this way (using apply_filters):
<?php apply_filters('the_content',get_the_content( $more_link_text, $stripteaser, $more_file )) ?>
Since: 0.71
get_the_content() is located in wp-includes/post-template.php
.