Daily Tip: Add Post Thumbnails to WordPress RSS Feed
May 11, 2010
Did you know that if you implement post thumbnails in your theme, they will not be automatically included in your RSS? You need to add a little function to get them to show up in your feed. It’s not difficult. Just copy and paste this 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');
Source: David Redfern’s Post a Week
This theme is provided free of charge, provided you leave the "Wordpress Theme From Pressography.com" attribution link at the bottom of the theme.
If you want to remove the attribution link, you must pay a small, $10 license fee for each site on which you want to remove the link. Click Here For More Information



Comments
Got something to say?