• Resolved drewshen

    (@drewshen)


    hi i am referencing a link to my wordpress feed with get_bloginfo(‘rss2_url’). i haven’t modified or done anything to the feed file, but when i click the link it says:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.hollyviewmusic.com/feed/
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>
    ^

    The Location is my rss url if you would like to reproduce, is there something i need to modify in my feed in order to get this to work? much obliged

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey dreshen,
    The code is usually in header.php, usually looks like this :
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

    [link moderated – if you have videos and tutorials that are helpful please submit them to http://wordpress.tv/ and use those links]

    Thread Starter drewshen

    (@drewshen)

    thank you for the help and for the very cool video 🙂 i have set up feedburner before and like it alot. i verified that the code you listed exists in my header.php just as you described it.

    if you notice in your video at around the 49 second mark you click the rss icon and it takes you to google by default? my question is with the particular feed i am working on i am receiving that xml error instead, when i am expecting it to take me to google as in the video. is there something wrong with this feed?

    Have you tried to change to default template? and look where the entries rss goes?

    Thread Starter drewshen

    (@drewshen)

    strange, it works for the default template. i am trying to see if there is something different between the default and my own template.

    Thread Starter drewshen

    (@drewshen)

    got it! went through the steps on this site:

    http://validator.w3.org/feed/docs/error/WPBlankLine.html

    and used the validator on my feed, once i got rid of any blank lines it worked.

    thank you again for your help, i appreciate it.

    Congratulations, So glad to hear it 🙂

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