The standard way to create the tag-archive page link is to ask it to WordPress with:
echo get_tag_link($tag_id_or_tag_object)
the function is smart enough to deal with id(s) or full tag objects like the ones returned by get_the_tags().
See here for more about the tag link: http://codex.wordpress.org/Function_Reference/get_tag_link
Related Posts:
- Archive permalinks
- Permalinks for WooCommerce Categories and Subcategories
- Root level category, tag, author and archive pages to work
- Rewrite url / permalink for default archive – yearly / monthly
- Change of permalink structure – redirects in htaccess breaks the archive links
- Custom permalink for search and pagination
- Programatically changing post’s permalink when identical post type is published
- RewriteRule accepts numbers but not letters in tag
- Date Archives’ Permalinks under Category folder
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Can’t select blog month within archive category
- How to use all tags in post permalinks
- Advanced author permalinks
- Disable date based archives for all categories except one
- Path to Pages Resolves to Archive instead of Actual Content
- permalinks issue and archives
- How to rename ‘Tag Base’ with WPeC 3.8?
- Change permalink structure for pagination only
- I Need to use Month , year in my all archives and pages of my wordpress site
- How to get links to user and tag by its name?
- Post with no tag permalink problem
- Tag pages do not show
- How to make different urls for some tags pages
- Strip subcategory base from URL
- Permalink refresh, the good, the bad, etc. What is best?
- archive by year and category: permalink support doesn’t work on pagination
- Customize URL for specific tags archive
- How do I use the same Tag slug for different Tags?
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- Permalinks – Archives
- WordPress Archives Cause Looping
- Problem with multiple tags in URL
- Permalink, links a page to the homepage
- Tag search not working after permalink structure change
- Tag URLs load a single post
- WordPress archive posts returns user to homepage
- Post archive pages bringing me to a 404 page
- Strip category base from URL?
- Adding tag slug to post permalink
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- How to use relative links on my pages?
- How to filter to output of the get_permalink() function
- Custom Permalink: /year/month/post-goes-here/?
- Menu Link Redirect Based on Username or User ID
- Redirect short-form URL to long-form URL (post_id to post_id + post_name)
- Enable Minify in W3Total Cache using NGINX [closed]
- Why I can’t change the permalink of this page?
- Permalinks changed with WordPress 4.9
- How can I add a page’s ID to its permalink using WP_Rewrite?
- How to change the permalink option to post name on theme activation?
- Does rename of page slugs create 301 redirects from old slug to new (same as for posts)?
- Changing post content on save, using updated fields
- Change blog segment of URL
- Change in permalink structure made javascript cookie not work correctly
- Images in media library have suddenly disappeared
- Conditional permalink structure
- Auto setup “permalink” or request notice
- Permalinks only for posts
- rewrite rule to redirect to the most recent date permalink
- File access different with permalinks on and off
- mod-rewrite exception? keep #hash in matching urls?
- Permalink Settings
- get_posts post title permalink not working for last item in array
- Add category into post permalink
- Add post overwriting permalink from previous post in 4.6
- Custom permalink structure with %postname% in front of domain name
- What is the right way to clean up $title before wp_insert_post?
- How to Use metada Value in Url and is it possible? [duplicate]
- Custom child page permalink
- How to allow slash(/) on page url
- Safest way to create a custom permalink
- Parent/Child Categories Permalinks
- How to prevent wordpress from lowering Capitalized letters
- An excluded ‘ghost’ page is crashing my permalink
- Yoast and permalink troubleshooting
- Permalink in relation with the files
- WordPress project redirecting to a blank index.php when i use custom templates
- Custom Permlinks work, regular page permalinks don’t
- How to redirect from old standard wordpress permalink structure to new custom one
- When is a good time to reset permalinks?
- wp_dropdown_categories links 404
- Search and replace post URL’s on page output?
- Two urls for one website
- Added incorrect rewrite rule now getting an error
- WordPress Pagination Not Working After Transfer from Localhost
- Accidentally changed the permalink structure
- Keep wordpress from modifying my permalinks
- Removed and Reinstalled WordPress, Redirect Broken now
- Pretty links for PHP pages above WP /blog directory?
- localization for Permalink
- Why are all pages redirecting to homepage when using custom permalinks?
- Custom post types not using archive structure
- After I migrated a website for WordPress – Saved changes in wordpress settings >> permalinks. Homepage only working, links not working
- 404 not found error on WordPress local host
- .htaccess regex for redirect subdomain to root domain & redirect old permalinks
- Parent pages not found with pretty permalinks
- Support Gallery link to pages
- When accessing all pages except the homepage I get Nothing Found
- Can’t Remove Unnecessary Slug