Post Thumbnail on RSS Feed


Sponsored Links






Jeff Starr give nice tricks how To Added Post Tumbnail in our RSS Feed, and I will show you on today wordpress tips. This code only need tiny hack, we put some code in our functions.php and the code will be execute automatically using add_filter method.

Added Post Thumbnail on Feed - Megan Fox Jonah Hex

Added Post Thumbnail on Feed - Megan Fox Jonah Hex


So, write down Added Post Tumbnail in our RSS Feed code

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

That’s it, we didn’t need to modify another file and the code will be injection into our RSS content or excerpt feed.

*please note Post Tumbnail featured avaliable on WordPress 2.9.x, image courtesy of Egotastic

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How to Exlclude some Categories on your WordPress RSS Feed

Using WordPress we can create unlimited possibility, we can create and use dozen themes, integrated with others CMS and many more. But for today tricks, I will show you how To exclude some categories from our WordPress RSS Feed. Example, … Read More

How To Publish The Feed Later

This is another nice tweak for your WordPress, with Publish The Feed later, you can schedule it and make it more easy to your reader. or do you have another plan? I got this tips from WP Engineer, Like we … Read More

How To Add Content to the End of Each RSS Post

RSS is simple ways to tell our readers what news on our sie, WordPress has designed with many feed format. And Now let's me show you how to tweak RSS Feed with extra function we can added content on our … Read More

The Best Way to Insert Custom Content into Feeds

My Another Favorite featured in WordPress is easy to tweak it out. And WordPress good support on Feed. Sometime we need to insert custom content into our WordPress Feeds right? On this post I will show you how to Insert … Read More

It’s All About Post Thumbnail

WordPress 2.9 built in new features, like Online Image editor and Post Thumbnail, On this post I will give some information about post that coverage Post Thumbnail, So, if you need to know about Post Thumbnail and add your theme … Read More

How to Exclude Some Categories from Feed, Archives, Search, and Home page

Exclude Some Categories on Feed, Archives, Search and many more in WordPress  is another solutions to hidden our content from un necessary reader, there are some plugin that can handle it. Recently, Miriam found an AMAZING plugin, Simply Exclude

Post Thumbnail on RSS Feed / WordPress Tricks & Tips

Daily The Best WordPress Tricks and WordPress Tips to make your WordPress nice read more

Source: http://wptricks.net/post-thumbnail-on-rss-feed/

How to Add Post Thumbnail to your WordPress RSS Feeds

Easy to follow tutorial that will allow you to add post thumbnails to your WordPress RSS feeds with a simple function. read more

Source: http://www.wpbeginner.com/wp-tutorials/how-to-add-post-thumbnail-to-your-wordpress-rss-feeds/

How to Display post thumbnail in RSS feed in WordPress

From the Introduction of WordPress 2.9, get_the_post_thumbnail() allows blog owners to display a thumbnail in thehe posts. But It was not possible to add tumbnails to read more

Source: http://www.techinfoblog.net/how-to-display-post-thumbnail-in-rss-feed-in-wordpress/

How To: Add a Post Thumbnail to an RSS Feed in WordPress — Brad

Have you ever needed to add the WordPress post thumbnail to an existing RSS feed? The below code will add a new element named to your RSS feed. read more

Source: http://www.strangework.com/2010/02/25/how-to-add-a-post-thumbnail-to-an-rss-feed-in-wordpress/

Post Thumbnails in RSS feeds — Super Ginormous

What the heck is going on, you ask? Say hello to Tersus. Bare bones? You got it. Tersus is an achingly simple WordPress theme without all the usual cruft. read more

Source: http://cdharrison.com/2009/12/16/the_post_thumbnail-for-rss-feeds/


7 Responses to Post Thumbnail on RSS Feed

  1. Space Game says:

    Great trick! It’s much more appealing to have an image in the RSS.
    Btw, good idea with the celebrity images – makes me wanna come back to check out your site again. :)

  2. Neil Diamond says:

    lol, it took me awhile but i get it now. nice!

  3. Pingback: wp-popular.com » Blog Archive » How To Show Post Thumbnails in RSS Feeds # WordPress Tricks & Tips

  4. Roshith says:

    i need to show thumbnails..thanks for the info

  5. Uli says:

    Hey,

    did you notice that when you apply this hack, it forces the RSS feed to go from summary to full? In essence, it shows the thumbnail, then the full post with the larger-scale image.

    if you haven’t tried that, check it out. Now the question: how to display thumbs on excerpt-only RSS feeds?

  6. Pingback: Como agregar los Thumbnails a los RSS feeds. Wordpress En Acción

  7. Pingback: How to Exlclude some Categories on your WordPress RSS Feed | WordPress News Wire

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>