How to Add RSS Subscription for Tags and Custom Taxonomy Archives


How to Add RSS Subscription for Tags and Custom Taxonomy Archives
Nerissa Daily

Go inside your theme’s folder and look for a file named as taxonomy-{taxonomy-name}.php (for ex: taxonomy-topics.php if your custom taxonomy is called topics). If you don’t have a custom taxonomy template, then create a new file. Copy and paste the content of your archive.php file into this new file. Once you are done, then paste the following code above the loop:

Customizing WordPress Archives For Categories, Tags And Other Taxonomies
Rolande Kline

Most themes have an archive.php template, which is used for category and tag archives, as well as date and author archives. You can add a template file to handle category and tag archives separately. These templates would be named category.php or tag.php, respectively. You could also create templates for specific tags or categories, using the ID or slug of the category or tag. For example, a tag with the ID of 7 would use tag-7.php, if it exists, rather than tag.php or archive.php. A tag with the slug of “avocado” would be displayed using the tag-avocado.php template.

Be the first to comment

Leave a Reply

Your email address will not be published.


*