the_excerpt_rss() WordPress Function
The the_excerpt_rss() function is a great way to display excerpts of your latest blog posts in an RSS feed. This function takes care of all the formatting for you, so all you need to do is specify the length of the excerpt and whether or not you want to include a link to the full post.
the_excerpt_rss() #
Display the post excerpt for the feed.
Source
File: wp-includes/feed.php
function the_excerpt_rss() { $output = get_the_excerpt(); /** * Filters the post excerpt for a feed. * * @since 1.2.0 * * @param string $output The current post excerpt. */ echo apply_filters( 'the_excerpt_rss', $output ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
0.71 | Introduced. |