get_queried_object
will give you the current term object being viewed. You can pass that directly to get_term_link
as the first argument.
$url = get_term_link( get_queried_object() );
Related Posts:
- How to get the url to tag & category base set by the user?
- Root level category, tag, author and archive pages to work
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Changing permalink from /postname/ to category/postname/
- Advanced permalinks structure
- How to add tags under categories
- Page Type with Category Link
- Is There a Difference Between Taxonomies and Categories?
- What is the difference between a “tag” and a “category”?
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to get permalinks with category base working with sub-categories
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Category archive by year with permalink support /category/YYYY
- Add a URL prefix to permalinks of one category of posts only
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- Control term order on a per-post basis
- get all tags from category
- Filtering categories in the permalink structure
- 404 Error On Category and Tags Pages
- Allow duplicate permalink slugs for posts in different categories
- Force WordPress to Show Pages Instead of Category
- Checklist of selected categories
- How do I use the same post slug for different Categories?
- How to remove category from wordpress url?
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- Rewrite URL with category and tag combined using WP_Rewrite
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Use tag interface for hierarchical taxonomy?
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Sort posts by tags in category pages
- How to search for categories and/or tags?
- Using URL parameters, list posts from category and custom taxonomy
- Filter categories using tags
- Sticky posts on home page, search, tag and archives without plugin
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Category and tag with same name
- Create subdomains for tags and categories
- In the tag archive – display count of posts for each category they belong to
- Is it possible to disable certain user roles from creating tags?
- Automated adding of one tag to all the posts in a category
- Changing the category permalink structure
- Moving Categories submenu to Media, but still opens Posts menu
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Category links suddenly started giving 404 errors
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Exclude most recent posts from specific category in wp_query()
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- How to totally get rid of Category in my blog?
- Showing all the posts in one page?
- Archive pagination causing 404 with permalinks structure
- Permalinks – Different structures for different categories?
- Deleting All tags except categories Wp database
- Is it possible to put tags and category information in the post as text?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- Script to duplicate categories as tags
- Search by word, category, tag, author
- Remove Categories and Tags from Admin Dashboard
- WooCommerce change category url and product base
- What Defines What Category A Post Picks (if in multiple)
- How to filter archives both by category and tag?
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- Removing category base form links messes up the parent-child behavior
- display most popular tags of category?
- Get tags specific category
- Can paginate_links() be customized for a specific category or tag?
- New categories are now going to 404s
- Any way to assign Post Categories and Tags to Links?
- Duplicate Category and Page URL loads Category instead of the Page
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Category vs Tag vs Table
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- Help with multiple dropdown tags search
- Custom WP_Query for current category (in category.php)?
- Default category link for a custom category is a broken link
- Hide tag and category boxes from the post editor
- Retrieve all posts within tag OR category?
- How to find the number of Tags a post has?
- How to not treat categories as tags in feeds
- How to set up Author archives with sub category URL
- Allow dot in wordpress permalinks (only for categories)
- Categories: A Greenhorn Question on Strategy (Not Code)
- How to customize tag and category post listings to show introductory content?
- wordpress wp_list_categories
- How to get category URL with the slug?
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- Are Category or Tag Archive Pages Possible?
- Specifying multiple categories in URL (permalink)?
- Possible to make a subdirectory that loops through a single category?
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages