Jeff Starr give nice tricks how To Added Post Tumbnail in our RSS Feed, and I will show you on today wordpress tips. This code only need tiny hack, we put some code in our functions.php and the code will be execute automatically using add_filter method.
So, write down Added Post Tumbnail in our RSS Feed code
function do_post_thumbnail_feeds($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<div>' . get_the_post_thumbnail($post->ID) . '</div>' . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'do_post_thumbnail_feeds');
add_filter('the_content_feed', 'do_post_thumbnail_feeds');
That’s it, we didn’t need to modify another file and the code will be injection into our RSS content or excerpt feed.
*please note Post Tumbnail featured avaliable on WordPress 2.9.x, image courtesy of Egotastic



Great trick! It’s much more appealing to have an image in the RSS.
Btw, good idea with the celebrity images – makes me wanna come back to check out your site again.
lol, it took me awhile but i get it now. nice!
Pingback: wp-popular.com » Blog Archive » How To Show Post Thumbnails in RSS Feeds # WordPress Tricks & Tips
i need to show thumbnails..thanks for the info
Hey,
did you notice that when you apply this hack, it forces the RSS feed to go from summary to full? In essence, it shows the thumbnail, then the full post with the larger-scale image.
if you haven’t tried that, check it out. Now the question: how to display thumbs on excerpt-only RSS feeds?
Pingback: Como agregar los Thumbnails a los RSS feeds. Wordpress En Acción
Pingback: How to Exlclude some Categories on your WordPress RSS Feed | WordPress News Wire