• WordPress 3.0.1 Theme Cutline 1.4-3CR, the faulty RSS feed can be found at https://loades.net/megabusblog/?feed=rss2

    The problem is that Google Webmaster Tools is reporting ‘Invalid tag value’ which it wants me to fix and then resubmit – if only I can find out how to! The invalid tag value appears to be the line which says <language />. The web site language is English and I think the tag value should be ‘en’? If this is correct how do I insert it into the feed?

    Thanks, Malcolm

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter loades

    (@loades)

    Thanks, Samuel.

    The link confirms that my feed does not validate and confirms that it’s the language tag which is wrong. Question is how do I fix it? If WordPress generates the rss feed is it a fault with WordPress? Or, is it a setting I’ve not made correctly?

    Malcolm

    I would be more likely to guess a plugin(s)

    Thread Starter loades

    (@loades)

    Deactivated all plugins and still the same.

    However, I have cured the problem and post the cure here in case someone else has the same problem in the future.

    \wp-includes\feed-rss2.php had the following line in it:-
    <language><?php echo get_option(‘rss_language’); ?></language>
    I changed the line to:-
    <language>en-GB</language>
    The feed now validates!

    It could also have been changed to en-US should that have been applicable.

    I don’t understand php but it looks like (only a guess) that the original line was to take the RSS language from some place where it had been set as an option. I couldn’t find anywhere where there was an option to set the RSS language. If that’s true then surely this is a WordPress 3.0.1 fault since the fault is in \wp-includes\feed-rss2.php?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RSS feed error’ is closed to new replies.