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?
- where is permalink info stored in database?
- Passing and retrieving query vars in wordpress
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Force WordPress to Show Pages Instead of Category
- How would I create a different permalink structure for pages and posts?
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- Is there an action for when permalinks are rebuilt?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- mod_rewrite enabled but Permalinks show index.php
- How to change “permalink” structure in “WordPress Thesis” theme?
- Turn off %postname% auto-incrementing?
- Custom Taxonomy URL
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Custom attachment permalink structure [closed]
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Get page by path – honoring permalink settings (urls w/slashes)
- Pagination Issue – /page/2 404
- How to stop WordPress from removing & from URL?
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Custom Post Type Yearly Archive Permalinks
- Passing the JQuery string to Worldpress URL
- An other permalink problem – 404 Error
- permalink results to “page not found”
- /tag/tag_name/page/2 gives a 404 error
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- Adding category slug to posts permalink causes 404 error
- Apply function only if end of url has /amp/ [closed]
- Permalinks – .htaccess
- WordPress Permalinks 404 bug with “next” button
- Combine category AND custom taxonomy in permalink structure
- permalink and add_rewrite_rule – error 404
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- IIS7.5 URL rewrite pboblem on index page
- Category blog URL 404
- Read more block is appending /#more-{post_id} to the link
- URL getting changed
- Why does one of my pages not have the option to edit the link?
- Giving specific category posts its own permalink structure returns 404
- Flushing rewrite rules enables to see an article, but I didnt change anything
- Issue with wp_insert_post when modifying permalinks with “.html” extension
- Permalink like example.com/taxonomy/post_type/postname
- while changing permalink, page redirected you too many times
- WordPress – Permalink custom Structure – 404
- Issue with my links or permalinks
- Why can’t I save permalink “360” for a page?
- Internationalize Forum Posts Without Translating Them
- Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off
- “post-name” Renders Using page.php, but “post-name-2” renders with single.php
- How to structure a wordpress site in folders?
- Why is there a # and other characters in URL for WordPress site?
- redirect old pages by .htaccess
- wp_get_attachment_url not working
- WordPress 3.1 problem, getting 404
- Redirect Loops Problems
- UI does not show correct Slug after modified using save_post action
- Non english characters in search bar
- How to set custom permalink in WordPress for single post in single directory?
- Blog URL Structure – Multiple Taxonomies