Forums

[resolved] Can't Generate RSS feeds of Entries (3 posts)

  1. Fit
    Member
    Posted 5 years ago #

    My RSS sidebar RSS selection won't generate feeds for visitors to subscribe to. Here is code and errors for both RSS entries and comments. Blog is http://www.wowgreathealth.com

    Current code for RSS entries feed:

  2. " title="<?php bloginfo('name'); ?> RSS 2.0 (XML)" rel="alternate" type="application/rss+xml">Entries RSS 2.0
  3. I've also tried suggested Adding Feeds for entries from WordPress:

  4. " title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('RSS'); ?>
  5. But on both codes I get no feeds displayed and Error for RSS Entries:
    XML Parsing Error: xml declaration not at start of external entity
    Location: http://wowgreathealth.com/?feed=rss2 Line Number 2, Column 1:^

    ---------------------------------------------------------------------------------------

    Current code for RSS comments feed:

  6. " title="<?php bloginfo('name'); ?> Comments RSS 2.0 (XML)" rel="alternate" type="application/rss+xml">Comments RSS 2.0
  7. I've also tried suggested Adding Feeds for comments from WordPress:

  8. " title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments RSS'); ?>
  9. But on both codes I get no feeds displayed and Error for RSS Comments:
    XML Parsing Error: xml declaration not at start of external entity
    Location: http://www.wowgreathealth.com/comments/feed/
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->^

  • Otto
    Tech Ninja
    Posted 5 years ago #

    Those links are fine. Your problem is that your feed starts with a blank line. There's a lot of possible causes for this. The most common are:
    a) Having a blank line at the very top or bottom of a plugin.
    b) Having a blank line at the very top of bottom of your theme's functions.php file.
    c) Having a blank line at the very top of bottom of your wp-config.php file.
    d) Having a blank line at the very top of bottom of any other major WordPress file.

    Find, and remove, this blank line. It will be outside the <?php...?> tags in the file.

    Also, you have created a "feed" directory which is preventing your normal "Entries" feed from working. Remove the directory named "feed" from your site.

  • Fit
    Member
    Posted 5 years ago #

    FIXED

    Wow Otto, Thanks a bunch. This just saved me tons of time.

    I had blank lines at the end of comments.php and header.php after the close ...?>

    There was some HTML code after that with blank lines between it and apparently that's all it took to screw things up.

    All is well.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags