• Resolved Venesa

    (@venesa)


    I have a theme that does not have the RSS feed set up. I read the wordpress document on WP Feeds and added the rss code to the header. I then added the required code and an image to the footer. This is not working. I also checked all the available url types listed and none of them work.

    I thought that adding the code to the header and the footer was all that was necessary as WordPress does the rest from its php files. Surely this is an easy thing to setup in my theme. Maybe I have missed something. Does anyone have any idea. My site is http://catchronicles.net and the feed icon is in the footer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Your site does have an RSS feed but it is currently invalid due to three blank lines at the top of the generated feed file. Try checking the theme’s header.php and functions.php files and remove any leading blank lines before the opening <?php

    Thread Starter Venesa

    (@venesa)

    I can see the 3 lines you mentioned when in view source. So I have checked those two php files you mentioned and some others and not found any leading blank lines before the opening <?php.

    Where can this be coming from? What occurs before the ‘get_header’?

    I changed to the wp classic theme to see if it srill occurs. It does not occur. The code coreeclty starts on the first line. There is no change in the code lines data except that there are no blank lines.

    Not sure what to look for next. Any ideas?

    Appreciate your help. Thanks.

    Thread Starter Venesa

    (@venesa)

    I found space at the end the last line of the footer (not the header) after </html> and that has deleted those threee lines but the RSS feed is still not working.

    Any ideas?

    Thread Starter Venesa

    (@venesa)

    Okay it is working now. Not sure why. Maybe it just needed some time to reset itself.

    Thanks for the suggestion.

    I did not know that extra lines or spaces would affect the the theme. Does anyone know what is acceptable in coding as many programmers add lots of lines, spaces and tabs, other cram it up and you cannot write it very well.

    Again I do appreciate your help. Cheers.

    Normally blank lines aren’t an issue within a script or template file. It’s the leading (before the initial opening <?php) or trailing (after the final closing ?>) that can cause problems.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘RSS Feed does not work’ is closed to new replies.