Home > Website > FeedSmith with sitemap.xml

FeedSmith with sitemap.xml

August 24th, 2008

HA! This time I won from technique. FeedBurner FeedSmith plugin redirect all my feeds to a predefined URL, Standard Sitemap Plugin generates a xml like a feed. I see a problem there, don’t you? You want all feeds to be redirected but the sitemap. Here is the solution.

Open FeedBurner_FeedSmith_Plugin.php in your favorite editor. Go to line 111 and change it to:

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

The part I added is && $feed != ‘sitemap’.

Enjoy your new sitemap.xml.

Categories: Website Tags: , ,
  1. December 13th, 2010 at 17:19 | #1

    Awesome. I’ve been looking for a fix for this for a long time. Appreciated.

  1. No trackbacks yet.
Comments are closed.