• My blog is at https://www.chamonixmountainguides.com/cmgblog/. The rss feed is not working.In another forum I was given the advice to change from RSS2 to RSS (which was said to be working) which I can see when I view source in Firefox. How do I locate the editable code to change the RSS2 to RSS? I can only find Php.The RSS widget does not provide editable functions. Am using thematic theme.
    Advice would be appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Open header.php and look for:

    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />

    Replace with:

    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />

    Thread Starter chammtnguide

    (@chammtnguide)

    Hi Esmi, thanks but it’s not in the header. I changed the feed in Sidebar.php but that didn’t help. Have now added

    <link rel=”alternate” type=”text/xml” title=”RSS” href=”<?php bloginfo(‘rss_url’); ?>” />

    to the header. But when I view source in firefox it still shows:

    <link rel=”alternate” type=”application/rss+xml” href=”https://www.chamonixmountainguides.com/cmgblog/?feed=rss2&#8243; title=”CMGBlog Posts RSS feed” />

    <link rel=”alternate” type=”application/rss+xml” href=”https://www.chamonixmountainguides.com/cmgblog/?feed=comments-rss2&#8243; title=”CMGBlog Comments RSS feed” />

    I don’t know where to change it.

    Any further advice appreciated.

    In header.php, delete:

    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php bloginfo('name'); ?> Posts RSS feed" />
    
    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>2" title="<?php bloginfo('name'); ?> Comments RSS feed" />
    Thread Starter chammtnguide

    (@chammtnguide)

    Thanks Esmi, but, as mentioned before

    <link rel=”alternate” type=”application/rss+xml” href=”<?php bloginfo(‘rss2_url’); ?>” title=”<?php bloginfo(‘name’); ?> Posts RSS feed” />

    <link rel=”alternate” type=”application/rss+xml” href=”<?php bloginfo(‘rss2_url’); ?>2″ title=”<?php bloginfo(‘name’); ?> Comments RSS feed” />

    doesn’t exist in header.php so I can’t remove it.

    The problem is locating it.

    You need to edit the file /thematic/library/extensions/hooks-filters.php

    The function thematic_show_rss() is creating the RSS links.

    // rss usage is switchable using a filter
    function thematic_show_rss() {
        $display = TRUE;
        apply_filters('thematic_show_rss', §display);
        if (§display) {
            $content = "\t";
            $content .= "<link rel=\"alternate\" type=\"application/rss+xml\" href=\"";
            $content .= get_bloginfo('rss2_url');
            $content .= "\" title=\"";
            $content .= wp_specialchars(get_bloginfo('name'), 1);
            $content .= " " . __('Posts RSS feed', 'thematic');
            $content .= "\" />";
            $content .= "\n";
            echo $content;
        }
    }
    Thread Starter chammtnguide

    (@chammtnguide)

    Thanks drmanry,
    I changed the rss feed to rss from rss2 in the links above at /thematic/library/extensions/hooks-filters.php. Unfortunately the feed is still not working and the error message when I try to subscribe through Microsoft Outlook says problem connecting to the server feed=rss2.

    Any suggestions?

    Okay, I see a call to rss2 in /thematic/library/extensions/widgets.php

    // Widget: Thematic RSS links
     function widget_thematic_rsslinks($args) {
     extract($args);
     $options = get_option('widget_thematic_rsslinks');
     $title = empty($options['title']) ? __('RSS Links', 'thematic') : $options['title'];
     ?>
     <?php echo $before_widget; ?>
     <?php echo $before_title . $title . $after_title; ?>
     <ul>
     <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> <?php _e('Posts RSS feed', 'thematic'); ?>" rel="alternate nofollow" type="application/rss+xml"><?php _e('All posts', 'thematic') ?></a></li>
     <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(bloginfo('name'), 1) ?> <?php _e('Comments RSS feed', 'thematic'); ?>" rel="alternate nofollow" type="application/rss+xml"><?php _e('All comments', 'thematic') ?></a></li>
     </ul>
     <?php echo $after_widget; ?>
     <?php
     }

    I’m not sure why they hardcoded rss2, but you can try changing those to rss.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to locate editable code to change from RSS2 to RSS’ is closed to new replies.