Show Featured Images in Your WordPress RSS Feed

This is a quick and easy solution to adding your large featured images from your posts into your WordPress RSS Feed. This also works for Feedburner.

It’s a great way to add some color to your Feed and also if you are using an email subscription service such as MailChimp or Aweber, this can really spice up those emails!

Featured Images in your WordPress RSS Feed

Step 1

In your WordPress dashboard, go to Appearance > Editor.


Step 2

Click into your functions.php file. (Please back this file up first. We suggest backing it up via FTP, this way if something goes wrong, you can just drag and drop the original back in)


Step 3

Paste this code at the bottom. Right above the “?>”

function featuredtoRSS($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content = ‘<div>’ . get_the_post_thumbnail( $post->ID, ‘thumbnail’, array( ‘style’ => ‘margin-bottom: 15px;’ ) ) . ‘</div>’ . $content;
return $content;

add_filter(‘the_excerpt_rss’, ‘featuredtoRSS’);
add_filter(‘the_content_feed’, ‘featuredtoRSS’);

Example Below on our Feed


This was compiled from Alex Joy’s amazing tutorial. Please see his site for more tweaks and options on your RSS Feed.

You may also like:

Display Pingbacks on WordPress Posts with Disqus C... Pingbacks and trackbacks are no longer supported in Disqus 2012. Mentions via twitter are, but not pingbacks or trackbacks. The pingbacks are still...
How to Set Featured Products in WooCommerce This is a short tutorial on how to set a featured product in WooCommerce and a shortcode you can use. Sometimes when it's too easy it is hard to fin...
Backslashes Aren’t Working in WordPress Post... Are backslashes not working in your WordPress posts? The most likely reason for this is due to a WordPress plugin. The best solution is to disable you...
Add a line break into WordPress Post or Page I don’t know why WordPress can’t seem to get line breaks to work correctly. Anyways, if you are searching for this you have probably tried adding a br...
Deleting an old Permalink in WordPress Ever had a page or post in WordPress that you wanted to name a certain name and whenever it saved, it appended it with "-2" or "-3"? Example, I was tr...
READ ALSO  Best WordPress Plugin for Checking Broken Links - Broken Link Checker
  • Elizabeth Richardson

    This works. Thank you. I actually use the wordpress functionality plugin so I don’t need to mess with my theme file.

    One question, as this displays the featured image THUMBNAILS perfectly, how would I get it to display the full sized image?