By: Prem Tiwari | Last Updated: | In: WordPress, WordPress Snippets
If you want to add post thumbnail into RSS feed, then keep your close attention in this post as I am going to explain how to add post thumbnail in RSS feed list of your WordPress websites.
This is simple and easy steps to add your post’s thumbnail image into RSS feed of your WordPress websites. This tutorial is designed for WordPress beginners and professionals.
Copy paste below code at the end of the functions.php file from your current activated theme folder. Below code will add thumbnail images of your posts into your RSS feed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
< ?php function fwe_feed_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '' . $content; } return $content; } add_filter('the_excerpt_rss', 'fwe_feed_post_thumbnail'); add_filter('the_content_feed', 'fwe_feed_post_thumbnail'); ?> |
You can also do the same thing by using a simple WordPress plugin “Featured Images in RSS & Mailchimp Email“. Download this plugin from wordpress.org and login to your WordPress admin panel and navigate to the dashboard => Plugins => Add New. Now search “Download
Featured Images in RSS & Mailchimp Email” in search text box and click on the Install Now button to install it into your WordPress websites. After the installation of this plugin click on the Activate button to enable this feature.
After visit your RSS feeds URL you will see the thumbnail images with post title and content.
Hope this tutorial help you if you have any question regarding WordPress feel free to add your comments in below comment section. Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari
wordpress rss feeds, wordpress thumbnail, WordPress thumbnails size, wordpress tutorial, wordpress tutorial for beginner, wordpress tutorial for beginners, wordpress tutorials