How to Add Post Thumbnails to Your WordPress RSS Feeds

How to Add Eye-Catching Post Thumbnails to Your WordPress RSS Feed (2 Methods)

Are you looking to spice up your WordPress RSS feed and entice more subscribers? Adding post thumbnail images is an excellent way to make your feed more visually appealing and click-worthy.

In this guide, we‘ll walk you through two methods for adding featured images to your RSS feed: an easy plugin approach and a more advanced code-based solution. We‘ll also share some tips and best practices to help you get the most out of your enhanced RSS feed.

But first, let‘s explore why you should consider adding images to your RSS feed in the first place.

Why Add Post Thumbnails to Your RSS Feed?

RSS (Really Simple Syndication) feeds are a great way to keep your audience updated with your latest content. They allow readers to subscribe to your blog and receive new posts in their favorite feed reader or email inbox.

However, the default WordPress RSS feed is pretty basic and only includes post titles, descriptions, and links. By adding eye-catching featured images, you can:

  • Grab readers‘ attention and stand out in their crowded feed reader
  • Increase click-through rates and drive more traffic to your website
  • Improve brand recognition by consistently showcasing your unique visual style
  • Enhance email campaigns by including images when your RSS feed is imported into Mailchimp or a similar service

Convinced? Great! Let‘s dive into the two main methods for adding post thumbnails to your RSS feed.

Method 1: Use the Featured Images in RSS and Mailchimp Plugin

If you‘re not comfortable tinkering with code, using a plugin is the easiest way to add featured images to your RSS feed. We recommend the free Featured Images in RSS and Mailchimp plugin.

Here‘s how to use it:

Step 1: Install and activate the plugin

In your WordPress dashboard, go to Plugins > Add New and search for "Featured Images in RSS and Mailchimp". Click "Install Now" and then "Activate".

Step 2: Configure the plugin settings

Navigate to Settings > Featured Images in RSS. Here you can customize how the featured images will appear in your feed, including:

  • Image size (thumbnail, medium, large, or full)
  • Alignment (left, center, or right)
  • Text wrapping (none, left, or right)
  • Link the image to the post

Choose your preferred settings and click "Save Changes".

Step 3: Set a featured image for each post

For the plugin to work, you‘ll need to set a featured image for each post you want to include in your RSS feed. To do this:

  • Edit a post and locate the Featured Image panel in the bottom right corner
  • Click "Set featured image" and either upload a new image or choose one from your media library
  • Select the image and click "Set featured image"
  • Update or publish the post

Repeat this process for all the posts you want to include images for in your RSS feed.

Step 4: Check your RSS feed

That‘s it! Your RSS feed will now include the featured images you‘ve set. To double-check:

  • Navigate to https://yourdomain.com/feed (replace yourdomain.com with your actual domain name)
  • Look for the tags in the feed source code – these contain the image URLs

You should see your featured images appearing alongside your post titles and descriptions. Now when someone subscribes to your feed or views it in a feed reader, they‘ll see the appealing thumbnails you‘ve added.

Method 2: Manually Add Code to functions.php

If you‘re comfortable working with code and want more control over how your featured images appear in your RSS feed, you can add a code snippet to your theme‘s functions.php file.

However, we don‘t recommend editing functions.php directly, as a single mistake could break your whole website. Instead, use a code snippets plugin like WPCode to safely add the necessary code.

Here‘s how:

Step 1: Install and activate WPCode

In your WordPress dashboard, go to Plugins > Add New and search for "WPCode". Install and activate the plugin.

Step 2: Add a new code snippet

Go to Code Snippets > Add Snippet. In the "Add Your Custom Code" area, enter a title for your snippet like "RSS Feed Post Thumbnails".

In the code area, paste the following PHP snippet:

function rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = ‘

‘ . get_the_post_thumbnail($post->ID, ‘thumbnail‘) .‘

‘ . $content;
}
return $content;
}
add_filter(‘the_excerpt_rss‘, ‘rss_post_thumbnail‘);
add_filter(‘the_content_feed‘, ‘rss_post_thumbnail‘);

This code checks if a post has a featured image set. If it does, it adds the thumbnail size image above the post content in the RSS feed.

You can change ‘thumbnail‘ to ‘medium‘, ‘large‘, or ‘full‘ to use a different image size.

Step 3: Save and activate the snippet

Once you‘ve added the code, make sure the "PHP Snippet" option is selected in the "Code Type" dropdown.

Click the "Save Snippet" button and then toggle the snippet from "Inactive" to "Active".

Your RSS feed will now include the post thumbnail images! Check your feed as described in Method 1 to confirm it‘s working.

Tips and Best Practices for RSS Feed Images

Now that you know how to add featured images to your RSS feed, here are a few tips to keep in mind:

  1. Use a consistent image size and style

Choose an image size that works well for your website layout and RSS feed design. Stick to a consistent size and aspect ratio for a professional, cohesive look.

  1. Optimize images for faster loading

Since RSS feeds are often viewed in feed readers or email clients, it‘s important to keep your images as lightweight as possible. Optimize them for the web to ensure speedy loading times.

  1. Set a default featured image

If you have older posts without a featured image, consider setting a default thumbnail to appear in your RSS feed. You can use your logo or a generic branded image. Here‘s a tutorial on how to set a default featured image in WordPress.

  1. Customize your RSS feed further

Want even more control over how your RSS feed looks? You can create a custom RSS feed template that overrides the default WordPress feed. This allows you to fine-tune the feed‘s HTML structure and add custom branding or styling.

  1. Add thumbnails to custom post type feeds

By default, the methods described above will add featured images to your main blog post feed. But what if you want to include them in feeds for custom post types, like products or events?

To do this, you‘ll need to modify the code snippet slightly. Replace the last two lines with:

add_filter(‘the_excerpt_rss‘, ‘rss_post_thumbnail‘);
add_filter(‘the_content_feed‘, ‘rss_post_thumbnail‘);
add_filter(‘the_excerpt_rss_your_custom_post_type‘, ‘rss_post_thumbnail‘);
add_filter(‘the_content_feed_your_custom_post_type‘, ‘rss_post_thumbnail‘);

Just replace "your_custom_post_type" with the actual name of your custom post type.

Enhancing Your Email Marketing with an Image-Rich RSS Feed

One of the biggest benefits of adding post thumbnails to your RSS feed is the ability to create more engaging email campaigns.

Services like Mailchimp allow you to import your RSS feed and automatically send new posts to your email subscribers. With featured images included, your emails will be much more visually appealing and likely to capture readers‘ attention.

To use your image-enhanced RSS feed with Mailchimp:

  1. Create a new email campaign and choose the "RSS" option
  2. Enter the URL of your RSS feed (https://yourdomain.com/feed)
  3. Customize the email template to display the featured image prominently
  4. Set your sending frequency and activate the campaign

Now whenever you publish a new post with a featured image, it will automatically be sent to your email list complete with an enticing thumbnail.

Wrapping Up

Adding post thumbnails to your WordPress RSS feed is a quick and effective way to make your content more engaging and shareable. Whether you choose the easy plugin route or the more advanced custom code approach, featuring eye-catching images will help you attract more subscribers and drive traffic back to your website.

For more ways to enhance your WordPress site, check out our guides on optimizing your images for the web and mastering the WordPress block editor.

Have any questions about adding post thumbnails to your RSS feed? Let us know in the comments!

Did you like this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.