• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Add Post Thumbnail to RSS Feed in WordPress

By Abhishek Ghosh April 23, 2014 11:19 am Updated on April 23, 2014

Add Post Thumbnail to RSS Feed in WordPress

Advertisement

Add Post Thumbnail to RSS Feed in WordPress in Very Easy Steps to Make Your Feed and FeedBurner Delivered Newsletters More Interesting. We have lot of articles on troubleshooting WordPress RSS Feed and Feedburner – if you face any issue in future, you can search them by manually searching on our website. Actually for Facebook, Twitter; the media files are directly grabbed from the Open Graph Protocol, RSS remained like it was 10 years ago. Also, we have supplied a free plugin to Add Post Thumbnail to RSS Feed in WordPress in this article, however we do not recommend to use it; instead use manual code for troubleshooting.

 

Add Post Thumbnail to RSS Feed in WordPress : How the Basic Logic Works

 

Here is the specification of RSS feed :

 

Vim
1
http://validator.w3.org/feed/docs/rss2.html

 

If you do not add proper markup, obviously your RSS feed will fail to pass validation. More specifically :

Advertisement

---

 

Vim
1
http://validator.w3.org/feed/docs/rss2.html#ltimagegtSubelementOfLtchannelgt

 

So, you can add more markups. This is the file which generates RSS :

Vim
1
https://thecustomizewindows.com/wp-rss2.php

Actually we were fixing an issue (automatically added “This articlet post name published first on The Customize Windows by Abhishek Ghosh. “) Later discovered that it was added by WP SEO. There was a request to write a guide on how to ddd Post Thumbnail in RSS Feed, so we looked a bit deeper on the topic. You need to add this snippet on your active Theme’s / Child Theme’s functions.php file :

Vim
1
2
3
4
5
6
7
8
9
function your_post_thumbnail_feeds($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = $content . '<div><a href="' . the_permalink($post->ID) . '">' . get_the_post_thumbnail($post->ID) . '</a></div> ' . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'your_post_thumbnail_feeds');
add_filter('the_content_feed', 'your_post_thumbnail_feeds');

It will give you thumbnail on RSS plus the thumbnail will link back to the post. Please troubleshoot validation checking the standard. We have added / used div as none is using an uniform WordPress theme.

your is a just name; you can change to something of your choice. Well, here is lot of discussion on the topic :

Add Post Thumbnail to RSS Feed in WordPress

Vim
1
http://wordpress.org/support/topic/thumbnailsfeatured-images-in-rss-feed-in-30

There was a plugin before in WordPress repo :

Vim
1
http://plugins.svn.wordpress.org/thumbnail-for-excerpts/tags/2.1/thumbnailforexcerpts.php

But probably it is not required by the most plus most keep magic quotes to off (its about PHP.ini file). We added a simple Plugin :

Vim
1
https://github.com/AbhishekGhosh/WordPress-RSS-Thumbnail/

Tagged With how to put photo thumbnails in wordpress post feed , wordpress add thumbnails to rss feed , wordpress post themnail in feeds
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Add Post Thumbnail to RSS Feed in WordPress

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Feed and FeedBurner Feed : What is appropriate for you

    WordPress Feed and FeedBurner Feed has obvious simillarity and some points to distinguish them. It is not that, FeedBurner is free, so let us use it. There are reasons to give preference one over the another.

  • RSS Feed Subscription : Reasons why you are not getting RSS subscriber

    Many bloggers wonder why another’s blog gets more RSS feed subscribers and his blog does not. Here are some possible reasons, with solutions to help you attract more RSS subscribers.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Data Mining IssuesDecember 4, 2023
  • What Are Different Tasks of Data Mining?December 4, 2023
  • What is Web MiningDecember 3, 2023
  • Recursion in ProgrammingDecember 3, 2023
  • What is Iteration – MeaningsDecember 2, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy