ThemeShaper Forums » Thematic

[closed]

RSS feed override

(12 posts)
  • Started 9 years ago by cookieandkate
  • Latest reply from helgatheviking
  • This topic is not resolved

Tags:

  1. Hi all,

    I'm having a terrible time switching the default RSS feeds shown in my source code to my Feedburner RSS feeds. I've installed the Feedburner Feedsmith Extend plugin, which helps but doesn't solve the source code problem. I've implemented the .htaccess hack, but can't tell that it's doing anything.

    I even upgraded to Thematic 0.9.7.8 so I could try this code in my functions.php: http://forums.themeshaper.com/topic/rss-options#post-23111. It didn't work. The original feeds are still displaying in my source code. It's a real problem because people are still able to subscribe to the wrong feed.

    To quote from http://forums.themeshaper.com/topic/how-to-switch-rss-to-feedburner-in-thematic-0975#post-15839, "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."

    I thought maybe that had changed with the 0.9.7.8 upgrade, but it doesn't seem to have changed it at all.

    Does anyone have a solution for this? I feel like it must be a very common issue that has gone under the radar. Help!

    Posted 9 years ago #
  2. Also, since updating to 0.9.7.8, I'm receiving an HTTP error every time I try to upload an image. This is a huge problem since my blog is photo based. Please, please help! Here's the error message:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Apache Server at cookieandkate.com Port 80

    Posted 9 years ago #
  3. By the way, I opened a new thread for the image issue here: http://forums.themeshaper.com/topic/upload-image-http-error-urgent-please-help

    Posted 9 years ago #
  4. I straightened out the image upload error but would still very much like to fix the RSS feed issue. Any suggestions?

    Posted 9 years ago #
  5. So does everyone have the wrong RSS feed listed in their <head> section? Or has anyone found a solution for this issue?

    Posted 9 years ago #
  6. i don't understand why you need the plugin or the automatic_feed support. can't you just filter the thematic_show_rss ? i know that it works fine as i filtered it OFF completely for someone in another thread.

    Posted 9 years ago #
  7. No, I tried that after updating to 0.9.7.8. It didn't work for me. Did thematic add thematic_show_rss support back into 0.9.7.8?

    To quote from http://forums.themeshaper.com/topic/how-to-switch-rss-to-feedburner-in-thematic-0975#post-15839, "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."

    Posted 9 years ago #
  8. ok- i just looked at the change log which reads:

    Added the constant <em>THEMATIC_COMPATIBLE_FEEDLINKS</em> which defaults to <em>false</em>. In this case the WordPress functions <code>add_theme_support( 'automatic-feed-links' )</code> is used. If you set it to TRUE, Thematic will use its own functionality. This is a requirement by the Theme Review Team.

    basically if you have defined THEMATIC_COMPATIBLE_FEEDLINKS as true (which is suggested in the sample theme) then thematic will use its filters to create the feeds. if this is not true then thematic will use the automatic-feed-links as seen in this bit of thematic's functions.php

    // Create the feedlinks
    if (!(THEMATIC_COMPATIBLE_FEEDLINKS)) {
    	add_theme_support( 'automatic-feed-links' );
    }

    if you want to use the filters to change the feeds, then you need to put

    define('THEMATIC_COMPATIBLE_FEEDLINKS', true);

    in your child's functions.php

    hope that helps somehow

    Posted 9 years ago #
  9. It's almost working now, Helga! Here's what I added within my functions.php:

    // turn off wordpress RSS links, activate Thematic RSS
    define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
    function no_rss(){
    return FALSE;
    }
    add_filter('thematic_show_rss','no_rss');
    add_filter('thematic_show_commentsrss','no_rss');

    Since I had effectively stripped the RSS feeds from my home page, I added them back manually into functions.php along with some other header functions:
    <link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/CookieAndKate" title="Cookie and Kate Posts RSS feed" />
    <link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForCookieAndKate" title="Cookie and Kate Comments RSS feed" />

    Here's the weird part--it works perfectly for my home page and archive pages. However, if I go to a page with my own content, or a post itself, the feed is all wrong. For example, the feed shown on my about (/about/) page is: http://cookieandkate.com/about/feed/ and for a post it is: http://cookieandkate.com/2011/easy-pesto-recipes/feed/. It doesn't appear to resort to those feeds on other Thematic sites.

    This is making me nuts. Any suggestions? How come the rest of my header code is inputted onto those page properly, but my custom feeds don't show up and random feeds do?

    Posted 9 years ago #
  10. what about?

    // turn off wordpress RSS links, activate Thematic RSS
    define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
    
    function feedburner_rss(){
       return '<link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/CookieAndKate" title="Cookie and Kate Posts RSS feed" />';
    }
    add_filter('thematic_rss','feedburner_rss');
    
    function feedburner_comments_rss(){
       return '<link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForCookieAndKate" title="Cookie and Kate Comments RSS feed" />';
    }
    add_filter('thematic_commentsrss','feedburner_comments_rss');

    looking again at header-extensions.php it looks like the filter to change the RSS is different from the filter to turn it off.

    Posted 9 years ago #
  11. It works!!! That's the code I needed all along. Thank you very, very much!

    Posted 9 years ago #
  12. yes! sorry i didn't see it sooner. don't forget to mark as resolved.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.