If you know the id of the category, this is how you can output a link to category.
<a href="<?php echo get_category_link( $idofcategory ); ?>" title="Category Name">Category Name</a>
Check this :
https://developer.wordpress.org/reference/functions/get_category_link/
Above page also shows how you can get the category link from category name, in case if you don’t know id of the category.
Related Posts:
- 404 Error On Category and Tags Pages
- Block multiple categories from Blog
- If newest post of category is newest post in general, skip first post of category
- WordPress Genesis not excluding category from blog
- Putting a Category of posts under a Page
- how to “not” display new posts with a specific category on the main page?
- Functions.php: Exclude Category from “Blog”
- How can I display tags as categories?
- Display content from a specific category using cat ID not working
- Display subcategories in dropdown
- Hide a category of posts from main blog, and only show in category view
- Add code to header based on category for specific posts?
- Use blog as base for tags and categories
- Restrict CSS on one page
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- excude a specidic category from showing in the “relative posts”
- Category post count is not correct
- How to create category filter on a blog like on the site below?
- Blog page with posts from specific categories
- Is it possible to set up blog categories without changing permalink structure
- Redirect Category pages to blog page with query string
- Read More showing only on first post
- List post categories that link to a page showing those posts
- Pages, Categories, and working with someone else’s code
- Multiple Categories under one URL, where ‘Front Page’ is used already
- Restricting certain blog posts by date?
- WordPress Multisite – global categories
- Get posts from sites in Multisite?
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Can’t custom taxonomies have same terms (slugs) as categories?
- Using wp_category_checklist in a widget
- Filter front page posts by category
- How to get the url to tag & category base set by the user?
- Exclude one category from get_the_term_list
- WordPress remove separator from last item in wp_list_categories
- Need help adding custom field to category
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- How to display a list of categories
- Root level category, tag, author and archive pages to work
- Number of posts in page – set per category and exclude sidebar
- Create single.php for specific category by category id
- is_category in pre_get_posts results in php notices
- Looking to exclude blog posts from category Previous/Next buttons
- Use get_term_children to get the sub category of a parent category for the current post
- How to make all posts in a category “unsticky”?
- Get a variable from object in array [closed]
- How to stop wordpress from showing the selected category on top of others in the category selection?
- advanced custom field Show field in special categry page [closed]
- Exclude Child Categories Using wp_list_categories
- How do I get a list of all categories that a given user has written blog posts for?
- How to remove category titles?
- Inserting Category programmatically
- Category-slug.php not being used
- Get only one of the current categories
- Show Available Taxonomy List with Current Category
- How to get grandparent of a given category
- Additional form options based on category selected not working
- Pagination for category slug returns 404 when page >= 2
- Display category-specific comments in sidebar
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Create menu / submenu from category subcategory and posts
- Display list of categories filtered by date?
- Redirect single article permalink to paginated category page
- List only categories i specify
- Author Page – List of categories plus number of posts in that category
- On the Blogpost I have categories showing, is there a way to exclude a catgegory like ‘Media’?
- How can you access category information from a theme?
- Filter WooCommerce archive pages by an additional category
- Posts from a category on homepage with category archieves page default css
- How to use wp_list_categories with plugin category?
- Theme modification for custom category menus
- Custom css per category and per single post belong in each category
- How Do I Delete WordPress Posts Older Than 400 Days, From A WordPress Category
- Category Page Template – Can’t get category ID
- Subcategory is displayed before Parent Category
- Shortcode to display all the post from a category in a page
- “Special” category is displayed in all categories or show parent category on sub category
- add woocommerce archive description if exist
- Can’t display posts by filtering categories using isotope.js
- Get a list of categories, separated by / to display inside the for custom metatags
- Is there a reason to put a product in both the Child and Parent Categories?
- Get_term_meta() always returns false
- How to list all categories a post is in, but exclude current post´s category on single post page
- Get only children category name
- Displaying only selected categories
- No results found for second level category
- get_the_category vs wp_get_post_categories
- How to get get_categories()’s ‘hide_empty’ argument to work with global year var in the archive template?
- Categories in media library
- WordPress Shop and restricting products and categories for some users/groups
- Pass list of categories to JS
- WP url to get rss with full text of post
- Paginating a list of all posts collected by category titles
- Customize category query in widget
- Page permalink rewrite
- Broken category styling
- Trying to WP_Query a category
- Woocommerce Force the category choice before creating new product? [duplicate]
- Custom EndPoint not working when strip child category in URL
- How to add custom prefix before category base for category page URL?