[resolved] conditional tags to show rss feed in archive.php (2 posts)

  1. dominoeffect
    Posted 7 years ago #

    One of the things I love about WordPress is the built-in rss feeds for tags, categories, authors, etc., and I'd love to put it to good use on my site.

    If i want to use conditional tags to show the rss feed for a specific tag, category or author on their respective archive.php page, how would I go about it?

    I've read http://codex.wordpress.org/Conditional_Tags but I'm very inexperienced with php and still a little confused...

    Could I do something like this in archive.php?:

    if, this is a category archive, then,
    "<a href="http://example.com/category/<?php echo single_cat_title(); ?>/feed">RSS feed for "<?php echo single_cat_title(); ?>"</a>

    would I need to initiate a loop beforehand?

    all my attempts so far are generating errors.. I truly appreciate any help.

  2. dominoeffect
    Posted 7 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic