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?
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?
Huh, one other problem: I can't find any way of getting individual comment RSS feeds that aren't wrapped in a href.
OK, I've found is_single(). Now all I need is the direct RSS URI.
Aha, managed it. I should have waited longer before posting this!
Varsity, any chance you could actually post the full code you used finally and where you placed it?
Thanks!
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.
nice! thanks!
This topic has been closed to new replies.