Retrieve the content of the current post formatted for a Feed. This tag must be within The_Loop.
<?php $content = get_the_content_feed( $feed_type ) ?>
get_the_content_feed() can be used to retrieve and store the value in a variable, without outputting it to the page.
<?php $my_content = get_the_content_feed(); if ( $my_content != '' ) { // Some string manipulation performed } echo $my_content; // Outputs the processed value to the page ?>
Since: 2.9.0
get_the_content_feed() is located in wp-includes/feed.php
.