Display Full Images in RSS Feed with NextGen

I’ve worked with a number of people who use the NextGen Image Gallery plugin for WordPress. A common problem that folks have with NextGen is that it doesn’t allow for full-size images to be displayed in an RSS feed. The user instead has to click through to the site to see the full images. If you don’t like that, you can use this code to make the full images show up!

Eventually, I’ll be releasing this as a free WP plugin, but for now, by popular demand, I’m posting it here. Simply paste this code into your theme’s functions.php file (before the ?> at the end) and you should be good to go!

//Change Thumbnails to Full Images in RSS feed
function change_thumbs($content) {
// See if we're dealing with a feed
if (is_feed()) {
// Strip out the parts of img src that lead to thumbnails
$content = str_replace("thumbs/thumbs_", "", $content);
$content = str_replace("width=\"208\"", "", $content);
$content = str_replace("height=\"156\"", "", $content);
}
// Send the content on its way
return $content;
}
// Add filters for RSS
add_filter('the_excerpt_rss', 'change_thumbs', 20);
add_filter('the_content', 'change_thumbs', 20);

If you don’t feel comfortable mucking around in code, feel free to contact me for a quick quote to set this up on your site.