You can use the action rss2_item
(and rss_item
for RSS 0.92) to output the required tags:
function wpse_406826_rss_featured_image() {
$src = get_the_post_thumbnail_url( null, 'medium' /* or whatever size you need */ );
if ( $src ) {
echo "<image><url>$src</url></image>";
}
}
add_action( 'rss2_item', 'wpse_406826_rss_featured_image' );
add_action( 'rss_item', 'wpse_406826_rss_featured_image' );
Related Posts:
- How to get SimplePie fetch_feed without stripping iframe code?
- Firefox is downloading the RSS feed
- Why does Simplepie return feed items in a wrong order?
- How to create additional full text RSS feeds
- Multiple category RSS feeds
- How to flush feed? Or set timeout on feed so that it isn’t cached?
- is it possible to get complete wordpress blog post in a rss feed?
- Disable RSS Feed
- Reducing image size in RSS only
- Changing title of wordpress RSS feed
- Setting the language of RSS feed
- A function to fetch blog content via rss feed
- Make RSS think posts are new?
- Creating an RSS feed with all of the prior month’s posts
- RSS feed site image custom resolution
- Difference between the 4 Built in RSS Feeds?
- Tracking RSS subscribers in Google Analytics
- How to disable atom feed and only use RSS feed
- RSS feeds and wordpress?
- How to get more than 25 items via Simplepie RSS Feeds?
- How to remove RSS feeds from WordPress theme
- How do I Import an RSS feed as WordPress posts without duplicates?
- How to remove site link from each post in RSS feed / modify output of the_excerpt_rss()?
- How to Create RSS Feeds for categories in WordPress?
- Importing multiple RSS feed into WordPress and sorting them by date
- Delaying One RSS Feed in WordPress but Not the Others?
- Custom RSS does not work for categories and tags
- Unfamiliar query string in Google Search Console URL not found
- Grab YouTube Thumbnail AFTER Post?
- Inserting ads into wordpress default rss feeds
- How fetch_feed() works?
- RSS feed for the previous week’s posts
- Feeds not working on my wordpress site
- Various WordPress Feeds for Same Blog
- How often does the RSS widget get updates?
- Help needed to make my site as Aggregator
- Out of memory errors – anon-rss or file-rss?
- Custom RSS feed with custom url
- WordPress – Sync wordpress post with JSON feed
- Feed links not working even with add_theme_support(‘automatic-feed-links’)
- How can I remove a RSS feed that a WordPress plugin adds to `wp_head()`?
- Is there way to make conditional branch for Rss feed items?
- Problem with getting RSS because of authentication
- Fetch / Filter Items in RSS feed by a different parameter.
- Flush RSS Cache
- RSS Feed Sticky Post?
- How can I provide a plaintext RSS feed?
- Help with Magpierss and WordPress
- How to add logo to rss feed
- Passing feed URLs with “&” to fetch_feed()?
- WordPress update totally broke the install. Main page now displays empty rss feed
- I’m not able to get RSS feed working. I get ‘XML parsing failed’
- Reply via email (mailto link) in RSS feed at the end of each post
- Rss error in first line of xml : not well-formed (invalid token)
- Second page of RSS feed
- How do I get my podcast feed created?
- RSS feed not Refreshes
- RSS Feeds not working in Chrome/ok in IE and Firefox
- Get RSS feed about plugin new update
- Issue with RSS Feed in Firefox and Safari
- RSS feed widget for specific categories with latest posts?
- WordPress keeps truncating my feeds and I can’t stop it
- Is a no RSS plugin setup supposed to work?
- Style wordpress image captions in RSS
- How to add RSS Icon/link as a widget?
- WP Job Manager: adding Company and Location values to RSS feed
- Custom RSS Feed Overwrites Permalink
- What is the difference between these GUID’s in wordpress feed?
- Code to mimic the RSS widget
- Change pubDate in rss feed in another format
- How to remove private posts from RSS feeds?
- Preventing RSS feeds access to the authenticated uses only
- RSS – This XML file does not appear to have any style information associated with it. The document tree is shown below
- Theme’s functions.php not called when rendering RSS feed
- Showing Taxonomy Terms in RSS Feed
- Modify RSS feed to change iframe structure
- Custom RSS formatting
- Medium Rss feed is not parsing in wordpress
- RSS Feed cURL error 52?
- RSS Feed Shows NULL When Asking For Thumbnail
- Update postdata without creating duplicate on wp_insert_post from RSS feed
- Help with WordPress RSS Validation Error
- Prevent incoming $_GET requests
- Show only picture from post_content in custom RSS file
- Importing large number of RSS feeds
- accessing my mu-plugins from within a template file
- My wordpress blog RSS isn’t showing
- RSS Feed to contain posts from 1 category only
- wp_head hook content showing up at top of RSS feed
- How to use RSS reader plugin for displaying as posts? [closed]
- Full sized images in RSS Feed
- How to debug/diagnose RSS feed that’s not working?
- RSS Subscriber count
- images are broken
- How do I enable my WordPress website RSS feed? My site doesn’t seem to have an RSS feed
- WordPress Plugins Feed Error, but I’m not asking for a plugins feed
- WordPress not showing the latest articles in RSS feed
- WordPress Feed Error [closed]
- WordPress Dashboard Incoming Links Error
- Extracting Channel Data from fetch_feed()