It sounds like you’re looking for get_term_link( $term_ID )
which takes the term ID and returns a link.
===
EDIT: Try this:
$term_id = get_query_var('tag_id');
$term_link = get_term_link( $term_id );
Related Posts:
- Permalink help with default Posts and custom Taxonomy
- Replace taxonomy permalinks
- Duplicate slug/permalink issue
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- Custom taxonomy return 404
- Using post type archive page for taxonomy archive
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- custom taxonomy and pages rewrite slug conflict gives 404
- Remove taxonomy base or term from url
- Custom taxonomy listing page when no term set (all terms)
- pre_get_posts with tax_query causes empty result
- Sort Custom Post Type Archive by Taxonomy Term [duplicate]
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- How to enable hierarchical permalinks for hierarchical taxonomies
- Archive template for taxonomy terms
- Remove Custom Taxonomy Base
- How can I set up a category “overview” page?
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- Dynamic page slug for Custom Taxonomies?
- The same slug in multiple taxonomies
- How to fix a double slash in custom permalinks with hierarchical taxonomy’s?
- Getting archive pages in WP’s AJAX internal link finder?
- Pros and cons of using [taxonomy name] in place of [category name]?
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Taxonomy based permalinks
- custom taxonomy archive permalink shows 404 error
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- How to create drop down for child categories of current taxonomy being viewed?
- Change URL structure of subcategory archive pages
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How do I get WordPress URL rewrites into Sitemap?
- Keep taxonomy base name in post permalinks
- Custom post type and taxonomy permalinks – Structure
- get_terms in a taxonomy template
- Custom Taxonomy template is not recognised
- Custom Taxonomy Archive BUG
- Date archive permalinks for custom taxonomy
- Custom Taxonomy Template Error: Catchable fatal error: Object of class WP_Error could not be converted to string
- Display Taxonomy Terms in an option tag with value being the slug
- Changing taxonomy term by slug (wp_update_term)
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- remove custom taxonomy base / slug [duplicate]
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- How do I exclude posts from custom taxonomy from a custom post type archive?
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- Sort order by slug for looped child terms of custom taxonomy
- Include parent and child in category url
- Custom Taxonomy index/archive hierarchy
- Base permalink for custom taxonomy
- put custom taxonomy slug in front of their respective term slugs
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- Query custom taxonomy by term id?
- How to customize custom taxonomy url?
- Set term on an attachment using wp_set_object_terms and want to display the full term text but it’s showing a slug instead
- Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress
- Why isn’t the ‘no results’ being shown when a query returns no results?
- Reverse order of posts in a certain taxonomy archive?
- How to add hierarchical taxonomy with parent child relation to URL?
- WordPress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options
- How to create a custom template for custom taxonomy wp-tag-cloud?
- 404 Error on Custom Post Type / Custom Taxonomy
- How to define %category% for custom taxonomies?
- Taxonomy and Page Slug Same
- Archive page of CPT’s custom Taxonomy
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Main query disturb pre_get_post by category query
- How can I rewrite the URL of my custom taxonomy to include the year?
- Rewrite/Change custom taxonomy slug
- How do I get the correct URL?
- How to replace custom post type with custom taxonmy in permalinks
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- Multiple Custom Taxonomy Rewrite
- List posts with slug title
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- Restructuring permalink with more than one taxonomies
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Permalinks incorrectly inserting multiple categories
- Custom post type archive page not showing on archive-posttype.php
- index.php Not Showing Custom Posts / Terms
- How to create a second set of tags that use the same slug or URL?
- Redirect or Prevent Viewing of Custom Taxonomy’s Archives?
- Permalink Rewrite with Archive – Archive gets 404
- Custom taxonomy rewrite in permalinks for posts gives 404 on pages
- Display taxonomy term slugs
- Permalink Rewrite to include Custom Taxonomy Term
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Taxonomy to WordPress Permalinks of custom post type
- stdClass::$labels /wp-includes/general-template.php undefined
- Permalinks not working on MU network with domain mapping
- Later change of taxonomy slug base not changing permalink
- Guest author – URL, base and custom taxonomy – working but unstable
- Change get_author_posts_url / Author URL via filter
- add_rewrite_rule pagination 404 error on page 4 and above
- Hide custom post type slug url from search engine [closed]
- Optional taxonomy in cpt permalink
- post_type_link not working for posts without terms
- Child terms with improper parent in the url should redirect to 404