Add Featured Images as Enclosures in WordPress RSS Feeds

RSS feed is a very useful feature of WordPress. By default, WordPress gives you two options to show images in your blog’s RSS feed:

  • Show the full article including all images
  • Show a summary without an image

What if you need to include the featured image in the rss feed?

WordPress doesn’t add featured images as proper enclosures to the RSS feeds. The best option is to include the image as enclosure tag in the rss feed. I can suggest you these two plugins:

But you can do it without using any plugin, just with a simple code snippet. Interested? Here you go:

You can include this code in your functions.php or as a mu-plugin for safety 🙂

Enjoy!

1 reply

Trackbacks & Pingbacks

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *