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.

  • 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?