• I operate a number of WordPress based sites, and I have just noticed that the RSS feeds for each site fail to validate due to the entire index.php of the root www file being inserted after the XML for the site feeds.

    I am not using any templates, I am running the WordPress loop in my own index.php page for each site.

    I thought it may have been a problem with permalinks, but I tried disabling permalinks on my own site (https://christophermiles.com.au) and the XML is still carrying the invalid HTML code after the document element.

    For an example of the invalid feed, look at the source for https://christophermiles.com.au/feed

    I have seen other posts from people who receive the same XM validation error, but in these cases it seems to be due to javascrip hacks. I can’t find evidence of the same on my site. In each case it is the index.php being somehow included in the feed.

    Help or advice would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter Slimejam

    (@slimejam)

    Sorry, have reposted in the appropriate section, mods please delete (or explain how I can delete my own post?)

    Thanks and apologies.

Viewing 1 replies (of 1 total)
  • The topic ‘“Junk after document element” in RSS feeds’ is closed to new replies.