Include each post's featured image at the top of its RSS feed item, so feed readers and email newsletters show it.
function nahnu_feed_featured_image( string $content ): string {
if ( has_post_thumbnail() ) {
$image = get_the_post_thumbnail( null, 'large', [ 'style' => 'max-width:100%;height:auto;' ] );
$content = '<p>' . $image . '</p>' . $content;
}
return $content;
}
add_filter( 'the_excerpt_rss', 'nahnu_feed_featured_image' );
add_filter( 'the_content_feed', 'nahnu_feed_featured_image' );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
WordPress’s RSS feed doesn’t include featured images, so feed readers and RSS-to-email newsletters show text only. This snippet adds the image to the start of each item.
WordPress filters feed content through the_content_feed and summaries through the_excerpt_rss. The snippet adds the featured image, at the large size with an inline style that keeps it within the reader’s width, to the start of both.
Open yoursite.com/feed/ and check that items with a featured image include an <img> tag.