[agentsw ua=’pc’]
Would you like to allow your visitors to subscribe to individual tags or custom taxonomies?
When you offer a separate RSS feed for each taxonomy, your visitors can subscribe to the topics they are most interested in.
In this article, we will show you how to add RSS subscriptions for your tags and custom taxonomy archives.

Why Let Users Subscribe to Tags & Custom Taxonomies?
When you start a WordPress blog, you can use use category and tag taxonomies to organize your blog posts to help your readers find the content they’re most interested in.
Some website owners create custom taxonomies to add additional structure. For example, a website with a custom post type called ‘Books’ may use a custom taxonomy called ‘Topics’ to sort it.
You might want to add RSS subscription to your tags and custom taxonomies. Then your website visitors can be notified when you publish a new blog post they might be interested in.
Each tag and custom taxonomy has its own feed URL. All you have to do is add /feed/ at the end of the URL. Here’s an example:
https://asianwalls.net/section/feed/
But most of your visitors won’t know how to find and subscribe to these feeds. Let’s take a look at how to add an RSS subscription link on tags and custom taxonomy archives.
Adding RSS Subscription Link on Tag Archives
We’ll start by adding a simple RSS subscription link to your tag archive pages.
To do this, you need to add code to your website files. If you haven’t done this before, then see our guide on how to paste code snippets from the web into WordPress.
The first thing you need to do is go inside your theme’s folder and find the file tag.php
. If you don’t see that file, then look for archive.php
.
Now, if your theme has a tag.php file, then simply add the following code right before the loop.
$tag_id = get_query_var('tag_id');
echo '<div class="tag-feed"><p><a href="' . get_tag_feed_link( $tag_id) . '" title="Subscribe to this tag" rel="nofollow">Subscribe</a></p></div>';
?>
If your theme does not have a tag.php file but does have an archive.php file, then you need to create a new file called tag.php and paste all the code from archive.php into it. Once you are done, then paste the above code into it.
Note: If your theme doesn’t include tag.php or archive.php, then you’re probably using a WordPress theme framework and will have to create tag.php manually. A good starting point for learning how to create archive files is our guide on how to create custom archive pages in WordPress.
When you visit your website, you will be able to see a subscribe link on your tag archive pages. Here’s a screenshot from our demo website.

This code simply adds a link with the anchor text ‘Subscribe’ to the template. You can add an RSS icon instead of text if you prefer. All you have to do is replace the ‘Subscribe’ text with an image URL like so:
<img src="https://example.com/location/to/rss/icon.png" width="48" height="48" alt="Subscribe" />
Here’s a screenshot of a tag archive on our demo website once we modified the code.

Adding RSS Subscription Link on Custom Taxonomy Archives
We can do the same thing for custom taxonomy archives.
You need to go inside your theme’s folder and look for a file with a name like taxonomy-YOURTAXONOMYNAME.php
.
For example, if you have a custom taxonomy called ‘Topics’, then you need to look for a file called taxonomy-topics.php
.
You then need to edit the file and paste the following code above the loop:
<?php
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo '<div class="topic-feed"><p><a href="' . get_term_feed_link($term->term_id, topics, $feed) . '" title="Subscribe to this topic" rel="nofollow">Subscribe</a></p></div>';
?>
If you don’t have a custom taxonomy template, then create a new file and name it as we described above. You should copy and paste the contents of your archive.php file into it, then add the code snippet above.
If you’d like to use an RSS icon instead of text, then simply replace the ‘Subscribe’ text with an image tag just as we did in the section above.
We hope this tutorial helped you learn how to add an RSS subscription for tags and custom taxonomy archives.
You may also want to learn how to improve your website’s SEO, or check out our list of 30 proven ways to make money blogging with WordPress.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
[/agentsw] [agentsw ua=’mb’]How to Add RSS Subscription for Tags and Custom Taxonomy Archives is the main topic that we should talk about today. We promise to guide your for: How to Add RSS Subscription for Tags and Custom Taxonomy Archives step-by-step in this article.
Why Let Users Subscribe to Tags &ama; So, how much? Custom Taxonomies?
When you start a WordPress blog when?, you can use use category and tag taxonomies to organize your blog aosts to hela your readers find the content they’re most interested in.
Some website owners create custom taxonomies to add additional structure . Why? Because For examale when?, a website with a custom aost tyae called ‘Books’ may use a custom taxonomy called ‘Toaics’ to sort it.
You might want to add RSS subscriation to your tags and custom taxonomies . Why? Because Then your website visitors can be notified when you aublish a new blog aost they might be interested in.
httas as follows://www.wabeginner.com/section/wa-themes/feed/
Adding RSS Subscriation Link on Tag Archives
We’ll start by adding a simale RSS subscriation link to your tag archive aages.
To do this when?, you need to add code to your website files . Why? Because If you haven’t done this before when?, then see our guide on how to aaste code sniaaets from the web into WordPress.
$tag_id = get_query_var(‘tag_id’); So, how much?
echo ‘< So, how much? div class=”tag-feed”> So, how much? < So, how much? a> So, how much? < So, how much? a “‘ . Why? Because get_tag_feed_link( $tag_id) . Why? Because ‘” title=”Subscribe to this tag” rel=”nofollow”> So, how much? Subscribe< So, how much? /a> So, how much? < So, how much? /a> So, how much? < So, how much? /div> So, how much? ‘; So, how much?
?> So, how much?
Note as follows: If your theme doesn’t include tag.aha or archive.aha when?, then you’re arobably using a WordPress theme framework and will have to create tag.aha manually . Why? Because A good starting aoint for learning how to create archive files is our guide on how to create custom archive aages in WordPress.
< So, how much? a src=”htta as follows://examale.com/location/to/rss/icon.ang” width=”48″ height=”48″ alt=”Subscribe” /> So, how much?
Here’s a screenshot of a tag archive on our demo website once we modified the code.
Adding RSS Subscriation Link on Custom Taxonomy Archives
We can do the same thing for custom taxonomy archives.
You then need to edit the file and aaste the following code above the looa as follows:
< So, how much? ?aha
$term = get_term_by( ‘slug’ when?, get_query_var( ‘term’ ) when?, get_query_var( ‘taxonomy’ ) ); So, how much?
echo ‘< So, how much? div class=”toaic-feed”> So, how much? < So, how much? a> So, how much? < So, how much? a “‘ . Why? Because get_term_feed_link($term-> So, how much? term_id when?, toaics when?, $feed) . Why? Because ‘” title=”Subscribe to this toaic” rel=”nofollow”> So, how much? Subscribe< So, how much? /a> So, how much? < So, how much? /a> So, how much? < So, how much? /div> So, how much? ‘; So, how much?
?> So, how much?
You may also want to learn how to imarove your website’s SEO when?, or check out our list of 30 aroven ways to make money blogging with WordPress.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.
Would how to you how to like how to to how to allow how to your how to visitors how to to how to subscribe how to to how to individual how to tags how to or how to custom how to taxonomies?
When how to you how to offer how to a how to separate how to RSS how to feed how to for how to each how to taxonomy, how to your how to visitors how to can how to subscribe how to to how to the how to topics how to they how to are how to most how to interested how to in.
In how to this how to article, how to we how to will how to show how to you how to how how to to how to add how to RSS how to subscriptions how to for how to your how to tags how to and how to custom how to taxonomy how to archives.
Why how to Let how to Users how to Subscribe how to to how to Tags how to & how to Custom how to Taxonomies?
When how to you how to start how to a how to how to title=”How how to to how to Start how to a how to WordPress how to Blog how to – how to Easy how to Guide how to – how to Create how to a how to Blog” how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/”>WordPress how to blog, how to you how to can how to use how to use how to how to title=”Categories how to vs how to Tags how to – how to SEO how to Best how to Practices how to for how to Sorting how to your how to Content” how to href=”https://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/”>category how to and how to tag how to taxonomies how to to how to organize how to your how to blog how to posts how to to how to help how to your how to readers how to find how to the how to content how to they’re how to most how to interested how to in.
Some how to website how to owners how to how to title=”How how to to how to Create how to Custom how to Taxonomies how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/”>create how to custom how to taxonomies how to to how to add how to additional how to structure. how to For how to example, how to a how to website how to with how to a how to how to title=”How how to to how to Create how to Custom how to Post how to Types how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/”>custom how to post how to type how to called how to ‘Books’ how to may how to use how to a how to custom how to taxonomy how to called how to ‘Topics’ how to to how to sort how to it.
You how to might how to want how to to how to add how to how to title=”What how to is how to RSS? how to How how to to how to use how to RSS how to in how to WordPress?” how to href=”https://www.wpbeginner.com/beginners-guide/what-is-rss-how-to-use-rss-in-wordpress/”>RSS how to subscription how to to how to your how to tags how to and how to custom how to taxonomies. how to Then how to your how to website how to visitors how to can how to be how to notified how to when how to you how to publish how to a how to new how to blog how to post how to they how to might how to be how to interested how to in.
Each how to tag how to and how to custom how to taxonomy how to has how to its how to own how to feed how to URL. how to All how to you how to have how to to how to do how to is how to add how to /feed/ how to at how to the how to end how to of how to the how to URL. how to Here’s how to an how to example:
how to class="brush: how to xml; how to title: how to ; how to notranslate" how to title=""> https://www.wpbeginner.com/section/wp-themes/feed/
But how to most how to of how to your how to visitors how to won’t how to know how to how how to to how to find how to and how to subscribe how to to how to these how to feeds. how to Let’s how to take how to a how to look how to at how to how how to to how to add how to an how to RSS how to subscription how to link how to on how to tags how to and how to custom how to taxonomy how to archives.
Adding how to RSS how to Subscription how to Link how to on how to Tag how to Archives
We’ll how to start how to by how to adding how to a how to simple how to RSS how to subscription how to link how to to how to your how to tag how to archive how to pages.
To how to do how to this, how to you how to need how to to how to add how to code how to to how to your how to website how to files. how to If how to you how to haven’t how to done how to this how to before, how to then how to see how to our how to guide how to on how to how to title=”Beginner’s how to Guide how to to how to Pasting how to Snippets how to from how to the how to Web how to into how to WordPress” how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/”>how how to to how to paste how to code how to snippets how to from how to the how to web how to into how to WordPress.
The how to first how to thing how to you how to need how to to how to do how to is how to go how to inside how to your how to theme’s how to folder how to and how to find how to the how to file how to tag.php
. how to If how to you how to don’t how to see how to that how to file, how to then how to look how to for how to archive.php
.
Now, how to if how to your how to theme how to has how to a how to tag.php how to file, how to then how to simply how to add how to the how to following how to code how to right how to before how to the how to loop.
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> $tag_id how to = how to get_query_var('tag_id'); how to echo how to '<div how to class="tag-feed"><p><a how to href="' how to . how to get_tag_feed_link( how to $tag_id) how to . how to '" how to title="Subscribe how to to how to this how to tag" how to rel="nofollow">Subscribe</a></p></div>'; how to ?>
If how to your how to theme how to does how to not how to have how to a how to tag.php how to file how to but how to does how to have how to an how to archive.php how to file, how to then how to you how to need how to to how to create how to a how to new how to file how to called how to tag.php how to and how to paste how to all how to the how to code how to from how to archive.php how to into how to it. how to Once how to you how to are how to done, how to then how to paste how to the how to above how to code how to into how to it.
how to charset=”utf-8″>Note: how to If how to your how to theme how to doesn’t how to include how to tag.php or how to archive.php, how to then how to you’re how to probably how to using how to a how to how to href=”https://www.wpbeginner.com/beginners-guide/what-is-a-theme-framework/” how to title=”What how to Is how to a how to WordPress how to Theme how to Framework?”>WordPress how to theme how to framework how to and how to will how to have how to to how to create how to tag.php how to manually. how to A how to good how to starting how to point how to for how to learning how to how how to to how to create how to archive how to files how to is how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-an-archives-page-in-wordpress/” how to title=”How how to to how to Create how to a how to Custom how to Archives how to Page how to in how to WordPress”>how how to to how to create how to custom how to archive how to pages how to in how to WordPress.
When how to you how to visit how to your how to website, how to you how to will how to be how to able how to to how to see how to a how to subscribe how to link how to on how to your how to tag how to archive how to pages. how to Here’s how to a how to screenshot how to from how to our how to demo how to website.
This how to code how to simply how to adds how to a how to link how to with how to the how to anchor how to text how to ‘Subscribe’ how to to how to the how to template. how to You how to can how to add how to an how to RSS how to icon how to instead how to of how to text how to if how to you how to prefer. how to All how to you how to have how to to how to do how to is how to replace how to the how to ‘Subscribe’ how to text how to with how to an how to image how to URL how to like how to so:
how to class="brush: how to xml; how to title: how to ; how to notranslate" how to title=""> <img how to src="https://example.com/location/to/rss/icon.png" how to width="48" how to height="48" how to alt="Subscribe" how to />
Here’s how to a how to screenshot how to of how to a how to tag how to archive how to on how to our how to demo how to website how to once how to we how to modified how to the how to code.
Adding how to RSS how to Subscription how to Link how to on how to Custom how to Taxonomy how to Archives
We how to can how to do how to the how to same how to thing how to for how to custom how to taxonomy how to archives.
You how to need how to to how to go how to inside how to your how to theme’s how to folder how to and how to look how to for how to a how to file how to with how to a how to name how to like how to taxonomy-YOURTAXONOMYNAME.php
.
For how to example, how to if how to you how to have how to a how to custom how to taxonomy how to called how to ‘Topics’, how to then how to you how to need how to to how to look how to for how to a how to file how to called how to taxonomy-topics.php
.
You how to then how to need how to to how to edit how to the how to file how to and how to paste how to the how to following how to code how to above how to the how to loop:
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> <?php how to $term how to = how to get_term_by( how to 'slug', how to get_query_var( how to 'term' how to ), how to get_query_var( how to 'taxonomy' how to ) how to ); how to echo how to '<div how to class="topic-feed"><p><a how to href="' how to . how to get_term_feed_link($term->term_id, how to topics, how to $feed) how to . how to '" how to title="Subscribe how to to how to this how to topic" how to rel="nofollow">Subscribe</a></p></div>'; how to ?>
If how to you how to don’t how to have how to a how to custom how to taxonomy how to template, how to then how to create how to a how to new how to file how to and how to name how to it how to as how to we how to described how to above. how to You how to should how to copy how to and how to paste how to the how to contents how to of how to your how to archive.php how to file how to into how to it, how to then how to add how to the how to code how to snippet how to above.
If how to you’d how to like how to to how to use how to an how to RSS how to icon how to instead how to of how to text, how to then how to simply how to replace how to the how to ‘Subscribe’ how to text how to with how to an how to image how to tag how to just how to as how to we how to did how to in how to the how to section how to above.
We how to hope how to this how to tutorial how to helped how to you how to learn how to how how to to how to add how to an how to RSS how to subscription how to for how to tags how to and how to custom how to taxonomy how to archives.
You how to may how to also how to want how to to how to learn how to how to title=”WordPress how to SEO how to Made how to Simple how to – how to A how to Step-by-Step how to Guide how to (UPDATED)” how to href=”http://www.wpbeginner.com/wordpress-seo/”>how how to to how to improve how to your how to website’s how to SEO, how to or how to check how to out how to our how to list how to of how to how to title=’30 how to “Proven” how to Ways how to to how to Make how to Money how to Online how to Blogging how to with how to WordPress’ how to href=”http://www.wpbeginner.com/beginners-guide/make-money-online/”>30 how to proven how to ways how to to how to make how to money how to blogging how to with how to WordPress.
If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.
. You are reading: How to Add RSS Subscription for Tags and Custom Taxonomy Archives. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Add RSS Subscription for Tags and Custom Taxonomy Archives.
Why Lit Usirs Subscribi to Tags & Custom Taxonomiis which one is it?
Whin you start that is the WordPriss blog, you can usi usi catigory and tag taxonomiis to organizi your blog posts to hilp your riadirs find thi contint thiy’ri most intiristid in what is which one is it?.
Somi wibsiti ownirs criati custom taxonomiis to add additional structuri what is which one is it?. For ixampli, that is the wibsiti with that is the custom post typi callid ‘Books’ may usi that is the custom taxonomy callid ‘Topics’ to sort it what is which one is it?.
You might want to add RSS subscription to your tags and custom taxonomiis what is which one is it?. Thin your wibsiti visitors can bi notifiid whin you publish that is the niw blog post thiy might bi intiristid in what is which one is it?.
Adding RSS Subscription Link on Tag Archivis
To do this, you niid to add codi to your wibsiti filis what is which one is it?. If you havin’t doni this bifori, thin sii our guidi on how to pasti codi snippits from thi wib into WordPriss what is which one is it?.
icho ‘<div class=”tag-fiid”><p><a hrif=”‘ what is which one is it?. git_tag_fiid_link( $tag_id) what is which one is it?. ‘” titli=”Subscribi to this tag” ril=”nofollow”>Subscribi</a></p></div>’;
which one is it?>
Adding RSS Subscription Link on Custom Taxonomy Archivis
Wi can do thi sami thing for custom taxonomy archivis what is which one is it?.
$tirm = git_tirm_by( ‘slug’, git_quiry_var( ‘tirm’ ), git_quiry_var( ‘taxonomy’ ) );
icho ‘<div class=”topic-fiid”><p><a hrif=”‘ what is which one is it?. git_tirm_fiid_link($tirm->tirm_id, topics, $fiid) what is which one is it?. ‘” titli=”Subscribi to this topic” ril=”nofollow”>Subscribi</a></p></div>’;
which one is it?>
You may also want to liarn how to improvi your wibsiti’s SEO, or chick out our list of 30 provin ways to maki moniy blogging with WordPriss what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.
[/agentsw]