Add an RSS post thumbnail to an RSS feed

RSS feeds are handy, but let’s face it, images do say so much more than words.  They stand out and grab attention, they help people identify blocks of information quicker.  They really are worth 1,000 words if you think about it.  Sometimes, a lot more….

Add this to your template or into your functions.php file:


function rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<p>' . get_the_post_thumbnail($post->ID) .
'</p>' . get_the_content();
}
return $content;
}
add_filter('the_excerpt_rss', 'rss_post_thumbnail');
add_filter('the_content_feed', 'rss_post_thumbnail');

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

3 thoughts on “Add an RSS post thumbnail to an RSS feed

  1. Hey I know this is off topic but I was wondering if you knew of any
    widgets I could add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite
    some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

    1. I assume you want to tweet your blog posts since you usually just go on Twitter to tweet your newest twitter updates. I have used a few WordPress plug-ins that will tweet as you post but I have not found a reliable plug-in that will trickle tweet your posts from the past. This would be an even better feature. I have linked WordPress to Twitterfeed.com in the past, it’s simple to set up, you need to register with them, then you need to follow the instructions. If you need more information, I would suggest reading this post from Mashable, a great source for digital marketing: http://mashable.com/2012/10/08/twitter-wordpress-integration/. Good luck, please come back and share your results with us!

Leave a Comment

Your email address will not be published. Required fields are marked *