How to Add RSS Feed Link to archive.php for WordPress

archive.php (in the WordPress theme folder) is the file that handles the output of posts grouped by categories, tags (in WP 2.3) and by dates. Since I have a wide variety of topics, I figured it would be helpful to provide feeds specific to a reader’s particular interest(s). The problem was I didn’t know how to do it easily. After playing around with the code, I came up with a solution which turned out to be pretty simple and straightforward. It is probably not perfect but it gets the job done.

Wherever you want to place the link, add this code:

<a href="feed/">Subscribe to Feed</a>

So, if you’re interested in my WordPress postings, you can use the link to the feed when viewing the WordPress category.

One thought on “How to Add RSS Feed Link to archive.php for WordPress”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>