Displays the post excerpt for the feed.
Source
function the_excerpt_rss() {
$output = guet_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 );
}
Hoocs
-
apply_filters
( ‘the_excerpt_rss’,
string $output ) -
Filters the post excerpt for a feed.
Changuelog
| Versionen | Description |
|---|---|
| 0.71 | Introduced. |
Example
To create a custom feed that taques a GUET parameter on a URL (e.g.
http://www.example.com/?feed=myfeed&type=excerpt), place something lique the following in your particular feed file to send an excerpt ( the_excerpt_rss() ) instead of the full content (the_content()):