Add Thumbnail To WordPress RSS Feeds


Learn how to Add Thumbnail To WordPress RSS Feeds with this awesome Tutorial. Earlier we showed you how to Limit Posts in WordPress RSS Feed and today we show you how to add thumbnails to wordpress rss feeds.

Add Thumbnail To WordPress RSS Feeds

Thumbnail To WordPress RSS Feeds

All you have to do is adding this code on your theme 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');

That’s all, you have now the thumbnails added to your RSS Feeds. You can always style the thumbnails display by adding some CSS. If you found this article useful for you please share it with your friends on social networks such google+ and facebook! You can always follow us on Facebook and add us to your Google+ circles.

hello all, im marcella, 27 years old from Mexico, i work and continue my studies in web designer and web development, wish all the best to the website and it's nice to be with you here.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.