• The Title on my rss feed was not displaying. I noticed that the rss1 feed had no problems:
    (ie http://www.domainname.com/wordpress/?feed=rss)
    so i compared the file wp-rss.php with wp-rss2.php
    and noticed a typo in the title tag.
    i removed the semicolon from the following line and it works now:
    <title><?php bloginfo_rss(‘name’); ?></title>

    http://www.domainname.com/wordpress/?feed=rss2

    I am fixing an existing install that someone else did, so if this is not the original file content I apologize.

    note: make sure you define your blog title in options > weblog title. And if you have a graphic header you must modify the css h1 tag so the text does not overwrite your image. (ie display:none)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You know, if it weren’t for the fact that I’ve seen stranger things work…. I’dve said that makes absolutly no sense what so ever. the ; is how PHP determines the end of a line… so to not have it, but then the code works, vs having it, but then breaking, …… I’d have to believe there’s something else that’s wrong, but that’s just where it happens to fall.

    Bizare. Bizare indeed.

    -tg

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    TG is right, there has to be something else wrong, especially considering that most of us have title’s on our RSS2 feeds, and I have never heard of anyone having a problem like this before.

    Thread Starter kenitech

    (@kenitech)

    true about the semicolon. but i did test it with and without it. try it yourself and see what happens?

    Yep, something else is at fault here. My feeds are valid and fine and I haven’t touched any code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No title in rss2 feed? I found a typo in wordpress code.’ is closed to new replies.