How to Save Your WordPress Tag Feeds in FeedBurner FeedSmith


In our step by step guide to setup a FeedBurner account with WordPress, we recommend that you should redirect your WordPress feeds to the feedburner feeds using the official FeedBurner FeedSmith Plugin. Today, one of our users reported a bug that by redirecting the feeds, this plugin hijacks your tag feeds. Meaning that your tag feeds will also be pointed to your main feedburner feed. While that may not be an issue for some users, but for other WordPress users, this can be a problem.

To fix this issue open the file FeedBurner_FeedSmith_Plugin.php, and find 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 this:

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

Thanks to @dominik for reporting and providing a solution.

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.