I am able to add a post featured image to the RSS feed like so:
function insertThumbnailRSS($content) {
global $post;
if(has_post_thumbnail($post->ID)){
$content="".get_the_post_thumbnail($post->ID, 'thumbnail', array('alt' => get_the_title(), 'title' => get_the_title(), 'style' => 'float:right;')).''.$content;
}
return $content;
}
add_filter('the_excerpt_rss', 'insertThumbnailRSS');
add_filter('the_content_feed', 'insertThumbnailRSS');
However, upon examining the XML generated for the RSS feed, I noticed it sticks the featured image into the XML description item tag.
How can I insert post featured image into it’s own RSS feed item tag of let’s say “image”, rather than just inserting it in with the post’s content?