Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

RSS feed not working - "XML parsing error" - code issue? WordPress


My new site is at - but the RSS feed has been impossible to get working properly (on any browsers or Mac/PC - although I mostly use a mac). If you go to, this pops up:

XML Parsing Error: XML or text declaration not at start of entity
Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>

I am admittedly a WP novice - but my friend who actually works on this stuff and is in charge of an entire organization's site that he built on WP cannot figure it out, and we've tried some different fixes already. I tried doing this: (basically, a separate RSS page to bypass the regular way to do it, and set it up at, but I got the same error notice). According to my friend, I did this process correctly, but for some reason it won't work.

The following fix was also tried, but again, to no avail:

Am totally stumped and not sure what else to try. If someone could fix this or tell me how to fix it I would be grateful! Thanks.

Answers (3)


Arnav Joy answers:

check your functions.php for following points:1--

1. use of short tags at any place like <? ?> instead of <php ?>
2. unwanted or extra spaces between lines of codes.
3. extra spaces after and above the file.

if these things not work then try adding this at the top of functions.php

<?php ob_start();?>

Arnav Joy comments:

i think there should be an extra space in your any of the file like header.php , footer.php.....

check and remove extra space at the end and begining of functions.php

after ?> closing tags there may be a line remove that.

Arnav Joy comments:

please see the screenshot.