Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To add a featured image to each WordPress RSS item, use a plugin that inserts the image into feed content, install one that emits Media RSS thumbnail metadata, or add site-specific output with the rss2_item hook. Whichever method you choose, confirm that posts have featured images, the image URL is publicly reachable, and the destination reader actually supports the representation you add.

Before you start: make sure WordPress has featured images

WordPress stores a featured image as an attachment associated with a post. The theme must declare support before the Featured Image box appears on the post editor. Add this to the theme’s setup code (preferably a child theme or a site-specific plugin):

add_action( 'after_setup_theme', function () {
    add_theme_support( 'post-thumbnails' );
} );

The official handbook notes that themes must declare this support before the Featured Image interface appears: Featured Images & Post Thumbnails. Existing posts also need an image selected; enabling support does not assign thumbnails automatically.

Choose where the image will be represented in the feed

Approach What it adds Best fit Important limitation
Add Featured Image to RSS Feed Places the featured image in RSS item content and uses the large image size. Fast, no-code setup when the consumer reads HTML in item content. Its listing warns that some readers rely on Open Graph data from the article page instead of embedded feed images.
WP Feed Post Thumbnail Adds a Media RSS namespace and thumbnail metadata, with filters for image size and related metadata. Services that explicitly consume Media RSS fields. The consuming service must support Media RSS; inspect the generated XML.
Custom rss2_item code Lets you emit your own image markup or metadata for every RSS 2 item. Sites needing a particular size, markup, or integration. Requires PHP maintenance, correct feed context, XML-safe output, and staging validation.

These are different representations. An HTML <img> in item content is not interchangeable with a Media RSS element such as media:content; use the format your feed consumer documents.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Option 1: add the thumbnail with a plugin

Add Featured Image to RSS Feed

  1. Open Plugins → Add New Plugin in WordPress.
  2. Search for Add Featured Image to RSS Feed, or review its listing at wordpress.org/plugins/add-featured-image-to-rss-feed/.
  3. Install and activate it.
  4. Assign a featured image to a test post, publish or update the post, and inspect the feed.

This is the simplest route when your service displays HTML contained in the RSS item. The plugin listing specifically cautions that some modern readers may use Open Graph image metadata on the linked article page instead, so activation cannot guarantee a visible thumbnail everywhere.

WP Feed Post Thumbnail

WP Feed Post Thumbnail adds Media RSS thumbnail metadata and offers filters for changing the image size and associated metadata. Choose it when the receiving platform says it reads Media RSS. Confirm the current WordPress-version compatibility, release activity, and settings on the listing before installation.

Add post thumbnail image to RSS feed

The Add post thumbnail image to RSS feed listing describes adding both a Media RSS tag and an image tag in RSS content. That combination can help when a consumer supports one representation but not the other, but you still need to check the emitted XML and the reader’s behavior.

Option 2: add custom output with rss2_item

WordPress fires rss2_item while generating each RSS 2 item. The official reference documents it as the place for adding per-post output: rss2_item hook reference. This example emits an image element for the current post when a featured image exists:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
add_action( 'rss2_item', function () {
    if ( ! has_post_thumbnail() ) {
        return;
    }

    $image_url = get_the_post_thumbnail_url( get_the_ID(), 'large' );

    if ( ! $image_url ) {
        return;
    }

    echo '<image><url>' . esc_url( $image_url ) . '</url></image>';
} );

has_post_thumbnail() checks whether the item has an attached featured image, while get_the_post_thumbnail() and get_the_post_thumbnail_url() retrieve the rendered image or its URL. The available image size depends on registered WordPress sizes; replace large only with a size your site actually registers.

The exact element you emit must match the consumer’s specification. If the service expects HTML inside item content, prepend an escaped <img> to the feed content instead of inventing a metadata field. If it expects Media RSS, add the namespace declaration and the required Media RSS element exactly as that service documents. Do not assume a custom <image> element is understood by readers.

Validate the generated feed before relying on it

  1. Open the site’s feed URL (commonly https://example.com/feed/) in a browser or XML-aware editor.
  2. Find a test item whose post has a featured image.
  3. Check for the expected HTML image markup, Media RSS element, or both, depending on your implementation.
  4. Copy the image URL and open it in a private browser window. It must resolve without a login, hotlink block, or temporary redirect that the consumer cannot follow.
  5. Check that the XML remains well formed: tags are closed, URLs and attributes are escaped, and no PHP warnings or debug text appear in the feed.
  6. Subscribe the feed in the intended destination reader or automation service and confirm how that service renders the item.

Repeat the check after changing image sizes, switching plugins, changing themes, or enabling caching. A valid feed does not guarantee that every reader displays a thumbnail.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why thumbnails still may not appear

  • No featured image is assigned: the conditional code correctly emits nothing for that post.
  • Theme support is missing: add add_theme_support( 'post-thumbnails' ) during after_setup_theme.
  • The image is not publicly reachable: private media, firewall rules, authentication, or blocked hotlink requests prevent retrieval.
  • The consumer reads a different representation: a reader may ignore HTML in item content, or may not implement Media RSS.
  • Invalid XML was introduced: unescaped characters, malformed custom markup, PHP notices, or an undeclared namespace can cause the consumer to discard the item.
  • Caching is serving an older feed: purge page, object, CDN, or feed caches and request the feed again.

Which method should you use?

  • Use Add Featured Image to RSS Feed when you want the quickest content-image setup and your destination reads HTML in RSS items.
  • Use WP Feed Post Thumbnail when the destination explicitly supports Media RSS metadata.
  • Use custom code when you need control over image size, markup, conditional rules, or integration and can maintain PHP safely.

In every case, test the actual feed and the actual reader. WordPress’s feed documentation is available in the Feeds handbook, updated July 7, 2025.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.