Php Display Rss Feed With Images

How to Show Featured Image in WordPress RSS Feed (Step-by-Step)

If you use the RSS feed on your WordPress blog you may have realized the featured image isn't included in your feed's posts by default.

Having an RSS feed with images will improve your syndication and may come in handy later since marketing tools like Mailchimp use RSS feeds to build newsletters.

In this quick guide I'll show you how to display your featured image in the WordPress RSS feed using a plugin or with a functions.php code snippet.

Show Featured Image in WordPress RSS Feed Code Snippet

If you're familiar with editing your functions.php file you can use the code snippet below to display the featured thumbnail in your RSS feed.

There is also a plugin you can use called Code Snippets which can come in handy if you want to add code to your site instead of constantly adding new plugins.

Show Featured Image in WordPress RSS Feed using a Plugin

If coding isn't your thing and you're looking for a WordPress RSS feed plugin with image there are a few options. For this guide we will be using the Featured Images in RSS plugin from the WordPress.org repository.

All you need to do is install and activate this plugin and your WordPress RSS feed will have images embedded.

The plugin also offers a few options depending if you want the featured image above the content or floating to the left/right.

Featured Images in RSS plugin options

This is perfect if you want a simple way to include images in your WordPress site's RSS feed.


I hope this quick tutorial was helpful, if you have any questions or comments about featured photos in WordPress let me know in the comments below!

Andy Feliciotti

Andy Feliciotti

Andy has been a full time WordPress developer for over 10 years. Through his years of experience has built 100s of sites and learned plenty of tricks along the way.

13 Responses

  1. thank you sir for share this helpfull information ,actully my website submit in google news .and when i post thare fiuture image not show .but now i read your article and work sem to sem .now fix the problem .again thank you so much .

  2. Thank God! this actually solved my problem

  3. This helped me to get images in Google News.

    1. Glad it helped!

  4. hello
    I am facing a problem with Google News, when I add the link to the feed, the titles appear without the featured images

  5. This is SO helpful. Thanks, Andy. Is it relatively straight forward to adapt this code to also add a custom taxonomy term's name to the bottom of the content of each post in the feed?

  6. This is very helpful to me. But I still have a slight problem, summary will not display on my site rss feed only headline appears. Pls, how can I solve this?

  7. The code worked like a charm. Thanks for posting these solutions!

  8. Infact, I'm so lucky that i get to know this website. Great content.

  9. This content is really helpful. Thank you!

  10. Thanks for this

  11. Good article. I have a question though: the image gets 'outputted' as part of the content… if I then wanted to show the content without the image, what would I do?
    Or, is there any way to keep these separate?

mcqueensprilk43.blogspot.com

Source: https://smartwp.com/featured-image-wordpress-rss-feed/

0 Response to "Php Display Rss Feed With Images"

ارسال یک نظر

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel