Family Encyclopedia >> Electronics

How to Fix FeedBurner FeedSmith: Preserve Your WordPress Tag Feeds

In our comprehensive guide to configuring FeedBurner with WordPress, we recommend the official FeedBurner FeedSmith plugin for redirecting feeds. However, users have reported an issue: the plugin also redirects tag feeds to your main FeedBurner URL.

While this may not impact every site, it can disrupt tag-specific feeds, which many users rely on for targeted content distribution.

As experienced WordPress developers, we've verified this fix. To resolve it, open the FeedBurner_FeedSmith_Plugin.php file and locate this line:

if (is_feed() && $feed != 'comments-rss2' && !is_single() && $wp->query_vars['category_name'] == '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_url']) != '')

Replace it with:

if (is_feed() && $feed != 'comments-rss2' && !is_single() && $wp->query_vars['category_name'] == '' && $wp->query_vars['tag'] == '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_url']) != '')

This simple change ensures tag feeds remain intact. Credit to @dominik for identifying and sharing this solution.