• 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
The Customize Windows > Computer and Internet > 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 :

 

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 :

Advertisement

---

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 3774 Times!

Facebook Twitter Google+ Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (15K Followers)
  • Twitter (4.4k Followers)
  • Facebook (5.2k Followers)
  • LinkedIn (3.3k Followers)
  • YouTube (1.5k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • 6 Tips for Securing Your Data from Cyber Attacks as a Remote Worker December 11, 2019
  • What is Process Mining? December 10, 2019
  • Explanation of the ESP32 Vulnerability Warnings December 6, 2019
  • OLTP versus OLAP December 4, 2019
  • What is OLTP (Online Transaction Processing)? December 3, 2019

About This Article

Title: Add Post Thumbnail to RSS Feed in WordPress
2014-04-23

Author: Abhishek Ghosh
Subjects: Computer and Internet

Is Part Of:


TheCustomizeWindows,

Wednesday, April 23rd, 2014,
Vol.1(01),
p.1–40224 [IoT Ready Journal]


Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher:
jima.in

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

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

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

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