the_excerpt_rss()
Display the post excerpt for the feed.
Description Description
Source 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 code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
0.71 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example
To create a custom feed that takes a GET parameter on a URL (e.g.
http://www.example.com/?feed=myfeed&type=excerpt
), place something like the following in your particular feed file to send an excerpt (the_excerpt_rss()) instead of the full content (the_content()
):Expand full source codeCollapse full source code