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 );
}


Top ↑

Changelog

Changelog
VersionDescription
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.