WordPress.org

Support

Support » How-To and Troubleshooting » Where do I change DOCTYPE for rss2.php

Where do I change DOCTYPE for rss2.php

  • My WordPress/wp-rss2.php did not validate. Where do I go to make the appropriate change?

    Also, WordPress/index.php had a problem with validation. Where do I go to make the changes for that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Post the validation errors here (or a link to your feed) so that we can see the issue? Since Thousands (or 10s of Thousands) of WP feeds *do* validate, let’s not go hacking into core code until we can see what the issue actually is.

    Oh – and you’re running WP 2.0.4, yes?

    As for the other issue, it would be your theme files that you want to change. Located under wp-content/themes/YourThemeName

    …DOCTYPE…
    …My WordPress/wp-rss2.php did not validate…
    …Also, WordPress/index.php had a problem with validation…

    Shot in the dark, but…

    You have a blank line in the wrong place in a plugin or in some code you’ve modified yourself somewhere. That blank line is getting inserted before the DOCTYPE declaration on all your pages (because plugins happen before the page displays). This is why you are failing validation, not because of some problem with the RSS or the page itself. Find and remove that blank line before doing anything else.

    Hello,

    http://sarasotafreeads.com/WordPress/wp-rss2.php

    Yes, I updated to current version.

    Also, technorati.com keeps rejecting my blog.

    Thanks for the reply,
    dwjr

    Hello again,

    There has been changes with validation.

    Feed validator now states index.php and wp-rss2.php both validate, but commentRSS should be commentRss

    W3C states index.php is valid but wp-rss2.php is not valid because of DOCTYPE. I am not sure if there is an unacceptable space between characters.

    Thanks,
    Dwjr

    Umm.. Only wp-rss2.php is the feed. The Feed validator is only for validating feeds.

    Similarly, the W3C thing isn’t made to validate feeds, so putting your feed URL in there is pointless.

    And you can fix the commentsRSS thing by simply editing wp-rss2.php and correcting the capitalization.

    Hello,

    Thanks for the clarification.

    Do you have any suggestions why technorati.com is rejecting the blog? I have not made any significant changes such as plug-ins since I upgraded.

    Dwjr

    I don’t know what you mean by “rejecting” the blog, so I have no opinion. You’ll have to give more information.

    I cannot claim the blog. I am not given a claim number with html code to put in the blog or on the blog site. Therefore, it cannot be spidered by technorati.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Where do I change DOCTYPE for rss2.php’ is closed to new replies.
Skip to toolbar