Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

Show Featured images in Feed

Well we always love subscribers those subscribe to our posts, but sometime we see that featured images cannot be viewed in the RSS Feed, well today we are going to show featured images in Feed, with a simple lines of code.

By default WordPres do not add the featured images in Feed but we can manually add it by adding the below code in functions.php :

add_filter('the_content_feed', 'rss_post_thumbnail_wpden');
function rss_post_thumbnail_wpden($content) {
	global $post;
	if( has_post_thumbnail($post->ID) )
		$content = '<p>' . get_the_post_thumbnail($post->ID, 'thumbnail') . '</p>' . $content;
	return $content;
}

Well you can add more detailed code or customize to your willing please not that it can be even used to add custom meta images instead of featured images also.

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • Email

Related

March 6, 2012 Ritesh Sanap WordPress featured images, functions.php, images in Feed, images in RSS, Tricks, WordPress Tips, WordPress Tricks

Post navigation

Previous Previous post: How to Detect Safari Browser on iOS
Next Next post: Before Starting a Blog

Currently Trending

  • How to download Specific parts of YouTube videos
  • h4x0r ( Hacker ) - Blogger Template
  • How to Change the Welcome/Login Screen in Windows XP ?
  • Highlight Author Comment in Blogspot
  • How to Increase Dropbox upload speed
  • How To Change Windows XP Shutdown Dialog Box
  • Windows Vista CD key
  • Advanced What should we Write about next? - WordPress Plugin
  • A Great Magic Trick With Google - Fool your Friends

Random Posts

Shortcut keys to Complete URL

July 27, 2008 By Ritesh Sanap Leave a Comment

How to get Start Menu back in Windows 8

November 23, 2012 By Ritesh Sanap 2 Comments

Blue Statement Thesis Theme

April 18, 2011 By Ritesh Sanap 6 Comments

Download Avira Anti Virus Bootable Rescue CD Free

August 9, 2008 By Ritesh Sanap Leave a Comment

How to Check if ISP is limiting Download Speed

September 16, 2013 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2022 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.