WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add post RSS feeds to header? (7 posts)

  1. Varsity
    Member
    Posted 8 years ago #

    I'm trying to add each post's RSS feed to its page header. I've managed that, but because I can't work out the if condition for posts (it isn't is_post()!) I get the link on every page. Can anyone sort me out?

  2. Varsity
    Member
    Posted 8 years ago #

    Huh, one other problem: I can't find any way of getting individual comment RSS feeds that aren't wrapped in a href.

  3. Varsity
    Member
    Posted 8 years ago #

    OK, I've found is_single(). Now all I need is the direct RSS URI.

  4. Varsity
    Member
    Posted 8 years ago #

    Aha, managed it. I should have waited longer before posting this!

  5. frankp
    Member
    Posted 8 years ago #

    Varsity, any chance you could actually post the full code you used finally and where you placed it?

    Thanks!

  6. Varsity
    Member
    Posted 8 years ago #

    I'm working on a Codex page for that very purpose. :-) It goes in header.php, preferably next to the existing feed link for code readability.

  7. frankp
    Member
    Posted 8 years ago #

    nice! thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic