After spending hours and trying all the different functions and plugins, I would like to ask if one of you managed to add a new tag to your RSS feed for your favorite image.
With both the plugins and the features that I tried, the image got directly into the description tag, right in front of the description text, which I also need to extract.
Here is one of the features I tried:
function insertThumbnailRSS($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', 'insertThumbnailRSS'); add_filter('the_content_feed', 'insertThumbnailRSS');
Any ideas or suggestions?
I am retrieving the RSS feed of my blog using the Yahoo API.
Thanks for the help.
source share