ThemeShaper Forums » Thematic

[closed]

How to switch RSS to feedburner in Thematic 0.9.7.5

(2 posts)
  • Started 11 years ago by TungZ
  • Latest reply from em hr
  • This topic is not resolved
  1. I want to change my RSS to feedburner. Here is my code:

    function my_rss($content) {
        $content = "\t";
        $content .= "<link rel=\"alternate\" type=\"application/rss+xml\" href=\"";
        $content .= 'http://feeds.feedburner.com/tungz';
        $content .= "\" title=\"";
        $content .= esc_html(get_bloginfo('name'));
        $content .= " " . __('Posts RSS feed', 'thematic');
        $content .= "\" />";
        $content .= "\n";
    
        return $content;
    }
    add_filter('thematic_rss','my_rss');
    

    But it doesn't work. I download thematic 0.9.7.5 from SVN. Any suggestions?

    Posted 11 years ago #
  2. Here's the rub Thematic 0.9.6.2 and earlier had two functions that output the feed links. The filters for those functions are : thematic_show_rss and thematic_show_comments_rss

    Now with 0.9.7.5 Thematic has added support for a WP 3.0 function parameter add_theme_support('automatic_feed_links') . As a result if you are using 0.9.7.5 with WP 3.0 or greater those Thematic feed functions and filters do absolutely nothing.

    Look at this post on how to filter WP to add your custom feed links via PHP:

    http://justintadlock.com/archives/2008/12/15/how-to-change-your-feed-links-without-using-htaccess

    or you could use the tried and true .htaccess method of redirection:

    http://perishablepress.com/press/2008/03/25/redirect-wordpress-feeds-to-feedburner-via-htaccess-redux

    -

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.