Fires at the end of each RSS2 feed item.
Source
do_action( 'rss2_item' );
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
Fires at the end of each RSS2 feed item.
do_action( 'rss2_item' );
Version | Description |
---|---|
2.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Add an image element for each post
Adds an image node to your RSS2 feeds
<enclosure url="http://example.com/file.mp3" length="123456789" type="audio/mpeg" />
Please see W3 Schools article on RSS tag images for reference and example feed use.(From Codex)
Add a custom field element for each post
Adds a node from a custom field to your RSS2 feeds using get_post_meta() .
Note: Custom elements like the one in this example are not a part of the RSS 2.0 specification, so adding it will mean your feed will technically be invalid RSS 2.0. Few, if any, RSS readers will make any use of the custom element.