WordPress hack: Display post thumbnail in your RSS feed

Simply paste the following code in your functions.php file. The post thumbnail should be visible once you saved the file.

function diw_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', 'diw_post_thumbnail_feeds');
add_filter('the_content_feed', 'diw_post_thumbnail_feeds');

Thanks to Jeff Starr for this great tip!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

WordPress hack: Display post thumbnail in your RSS feed

URGENT!!! writers needed $2.00 per article URGENT!!! by beefyeye

i have 600 articles needed to be written in 7 days. next week, i have 500 articles due. i need excellent writers. bid only if you are willing to write an assessment article prior to being selected… (Budget: $750-1500, Jobs: Article Rewriting, Articles, Copywriting, Proofreading, Travel Writing)

Exchange + Sharepoint on WinServer 2003 by lifebalance

Hi everyone, we are considering using Exchange 2010 and Sharepoint 2010 Servers in our small business. Before the decision is made among the partners we would like to install trial versions of these servers and see how it works… (Budget: $250-750, Jobs: Active Directory, Microsoft Exchange, Sharepoint, SQL, Windows Server)