• 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

This Article Has Been Shared 674 Times!

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

  • WordPress and Paid GNU GPL Themes

    WordPress and Paid GNU GPL Themes combination is always a matter of debate. Here is some clarification about the Paid Themes and Paid GNU GPL Themes as a whole.

  • Git with Subversion for WordPress Plugin Development Detailed Guide

    Git with Subversion for WordPress Plugin Development Detailed Guide Explains How To Use Git like GitHub, your Mac and WordPress to Keep Plugins Updated.

  • Google Tag Manager : Manage Site’s Tracking and Marketing

    Google Tag Manager tags your website for tracking and marketing optimization. You can use for AdWords, Analytics, Floodlight instead of editing all codes.

  • HTML5 Audio Tag and Embedding MP3 in WordPress Post

    HTML5 Audio Tag Element Represents a Sound or an Audio Stream. Embedding MP3 Such as Own Podcast in WordPress Single Even One Post is Easy Without any Plugin.

  • SQL Commands to Clean WordPress Database : Guru Killer Guide

    Here is a Guru Killer Guide With the Excellent SQL Commands to Clean WordPress Database Which can Reduce the Database Size Up To 80% – Yes.

Additionally, 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

  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Add Post Thumbnail to RSS Feed in WordPress," in The Customize Windows, April 23, 2014, March 30, 2023, https://thecustomizewindows.com/2014/04/add-post-thumbnail-rss-feed-wordpress/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT