WordPress.org

Forums

WordPress RSS feed not working (2 posts)

  1. Garymorin
    Member
    Posted 1 year ago #

    hi

    The wordpress rss feed is not working on my site. http://www.keynetix.com/feed

    The validate says there is a problem with the bank first line. I've read up around the problem and tried finding the surplus linefeed after ?> But with no luck.

    I think the problem is connected with the theme i'm using, although the RSS feed does work with the theme on other people's sites. I disabled all the plug-ins and I still had the same problem, however when I changed the theme the RSS feed started working.

    has anyone any suggestions on where or how I could track down the problem. I am a bit of a WordPress and PHP novice, so any step-by-step guidance would be much appreciated or a link to an appropriate article.

    I appreciate any help you give

  2. Garymorin
    Member
    Posted 1 year ago #

    Hi

    having spent a few hours trying to solve the problem and then posting above, I decided to have a new search and found this link straightaway, http://www.w3it.org/blog/wordpress-feed-error-output-solution-how-to/

    It says use these lines in feed-rss.php and feed-rss2-comments.php.

    $out = ob_get_contents();
    $out = str_replace(array("\n", "\r", "\t", " "), "", $input);
    ob_end_clean();

    I'm pleased to say this fix the problem, but I know the linefeed is still lurking in the code somewhere.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags