How to Add Post Thumbnails to Your WordPress RSS Feeds?

0
104

Do you want to add post thumbnails to your WordPress RSS feed?

We create the thumbnails and use them in the post content so that we can easily grab the attention of the visitor to the website. Additionally, an RSS feed is very important to present your WordPress blog in several popular applications around the web. 

With the help of the RSS feed, one can easily promote the blogs in every possible popular service like directories, feed readers. In spite of the fact that WordPress provides the RSS feed by default, it does not allow adding of the tags in the feature images as well as the feature image of the blogs are not displayed in the RSS feed.

No need to worry, we are here to solve your problems. In this article, we have mentioned the easiest ways to add post thumbnails to your WordPress RSS feed.

What is RSS Feed?

Before learning to add post thumbnails to your WordPress RSS feed you must have the proper knowledge about the RSS feed. Initially, RSS is the abbreviated form of the Really Simple Syndication. It functions well in providing regular updates or notifications from a website or a blog to the visitor or normally the subscriber in a web feed. 

In addition to this, the main significance of using the RSS feed is that it allows the user to get the regular update from their chosen website without visiting them time and again. Surely, you will save time and you will find the latest information directly into your email, feed readers, or any other devices as well. 

Most importantly, if you are an owner of a blog website, then you can easily increase the site traffic on the website very easily with an RSS feed. You don’t need to work very hard to make the blogs reachable to the customers and even the new sites are easily accessed by the visitors. Also, you can easily customize the fees by providing a better user experience side-by-side.  

However, the problem is that the feature image of the blogs is not displayed in the RSS feed. Here we will discuss the easy ways to add the post thumbnails to your WordPress RSS feed. Without further delay, let us start:

Ways to Add Post Thumbnails to Your WordPress RSS Feed 

Here are the different ways:

1. Using a Plugin

The use of the plugin is surely the most favorable method for beginners. No doubt, it is the easiest one too. In this method, we will use the Featured Images in RSS for Mailchimp & More plugin. Follow the steps mentioned below:

  • After activation, navigate to Featured Images in RSS. This plugin will allow you to make changes in the RSS image size, alignment, text padding, and even asks you if you want to make the image clickable.
  • Once the setting is done, make sure to click on the “Save Changes” button. 

Hence, in this way you have easily added post thumbnails to your WordPress RSS feed without any problems.

2. Using a Code

This method falls under the advanced method and is recommended only for advanced users. Apart from this, the users are expected to have proper knowledge about the code as well. Additionally, you need to be very careful as a small error can break down the entire website.

Nevertheless, if this is your first attempt do visit our article “How to Easily Add Custom Code in WordPress?” for secure addition of the code.

The process is simple. All you need to do is add the code snippet in your theme’s function.php file. Instead of directly editing the code, we recommend you use a code snippet plugin to help you out. 

  • Upon activation, head to Snippets >> Add New.
  • Now, you need to copy the code mentioned below:

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’);

  • Paste the code into the code area and name it with a suitable title. Don’t forget to click on the ”Save changes” and “Activate” buttons. 

Thus, you have successfully added post thumbnails to your WordPress RSS feed.

 Wrapping up

Lastly, we hope that our article helped you to add post thumbnails without any problem. If you found the article interesting, do visit our article “How to Add Custom Post Types to Your Main WordPress RSS Feed?” for more information.

LEAVE A REPLY

Please enter your comment!
Please enter your name here