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
- Date-based archive URLs to match my /2023/Jun/13 permalink structure?
- Is it possible to get a page link from its slug?
- Need help with add_rewrite_rule
- After server migration only the homepage works
- remove “index.php” from permalinks
- where is permalink info stored in database?
- Changing permalinks gives me 404 errors on nginx
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Change media item permalink
- Get Permalink without domain (i.e. get relative permalink) [duplicate]
- How does WordPress create URLs that Apache knows about?
- Strange permalink issue: can’t rename /company-2/ to /company/
- Passing and retrieving query vars in wordpress
- Get the current page URL (including pagination)
- Stop WordPress appending `-2` to the end of my url after i change it
- Get default permalink structure from pretty URL’s
- How to get permalink and title from post ID?
- Why is “/page/2/” not working?
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Performance of my permalink structure?
- Permalink format: singular or plural
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- Get current URL (permalink) without /page/{pagenum}/
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- Get page permalink without wpurl
- How can I get the privacy policy page?
- Can I use REST-API on plain permalink format?
- WordPress slug issue with non-latin characters
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to get pretty URLs with add_query_arg in permalinks
- What is the best permalink structure for SEO?
- Change author permalink
- Creating custom permalink structure for languages
- Hide permalink and preview button and link on custom post
- Custom post type permalink endpoint
- How can I make Capital letter ( upper-case ) permalinks?
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- How do I set a custom base URL for standard posts?
- Removing Parent Page(s) from Permalink
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Why permalinks work with /index.php/%postname% but not with just %postname%?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Getting the Site URL Including the Front Base
- Does WordPress Change the .htaccess File When Updating?
- Using $_GET variables in the URL?
- Category archive by year with permalink support /category/YYYY
- Removing the redirect after changing a page’s slug
- How to display a public profile page for registered users with custom slug?
- Removing leading zeros from custom permalink structure
- Must slugs be unique?
- Setting 404 page in Nginx
- How to get the clean permalink in a draft?
- How to use relative links on my pages?
- How does wordpress keep track of post id when post id is not used in permalinks?
- How to filter to output of the get_permalink() function
- Stop WordPress from reserving slugs for media items?
- Including category-base in a post permalink results in 404