// display featured post thumbnails in RSS feeds function WPGood_rss_thumbs( $content ) { global $post; if( has_post_thumbnail( $post->ID ) ) { $content = '
' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '
' . $content; } return $content; } add_filter( 'the_excerpt_rss', 'WPGood_rss_thumbs' ); add_filter( 'the_content_feed', 'WPGood_rss_thumbs' );
Skip to content