Return to Snippet

Revision: 30425
at August 13, 2010 15:03 by mediamilan

Initial Code
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');

Initial URL

Initial Description
By default wordpress does not include post thumbnails in RSS Feeds. Enable in by add this code the functions.php located inside your themes folder.

Initial Title
Wordpress: Display post thumbnails in RSS Feed

Initial Tags
post, wordpress

Initial Language