You should be using get_term_link( $category->slug,'category' )
to get the category url refer
link
Related Posts:
- How would I get a taxonomy/category list inside a Gutenberg block?
- Make parent categories not selectable
- Reflect nested categories in appearance > menus
- How to show posts of an columnized different categories on the same line or row?
- Echo one category as title when post has multiple categories?
- I use same slug name for category and page
- Showing all the posts in one page?
- On Category page, How can I get the category ID?
- How to order categories in Woocommerce that are spread over multiple pages? [closed]
- Order Taxonomy Term by date created
- How do I display the posts from a custom post type on a category.php page?
- category_description() shows raw html after version 3.x?
- Automatically add product_categories to nav_menu
- Can paginate_links() be customized for a specific category or tag?
- Add Product categories to WordPress menu without losing hierarchy
- How to set up Author archives with sub category URL
- Can I use get_adjacent_post for specific categories?
- How to change number of items on add new pluggins page from backend?
- Accessing WordPress MySQL Database via Data Connection in Visual Studio 2010 using C#
- How to display posts under a specific subcategory of a given category
- Ignoring a category in WP_Query still shows the links in next_post_link()?
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- How can I duplicate categories and tags?
- Show number of articles in menu
- Can you pre-check wordpress categories?
- If posts category is “cars”, display image
- How to prevent parent being choosen in wp_dropdown_categories
- query in category.php repeats itself
- How can I add more “filters” to my products? (Categories, attributes, etc.)
- Removing post category base giving Error 404
- Remove product category placeholder image (Woocomerce)
- How to “group” (categorize) the Pages together?
- Is There a Difference Between Taxonomies and Categories?
- Style category link depending on category ID
- Custom Walker for wp_list_categories
- Related Tags not in category
- Output category color option to each li item
- How do I display only two categories Instead of displaying all categories
- Hooking to walker_nav_menu_start_el to insert list of subpages
- Show the latest post from child category?
- How do I add a tag slug to a category URL to filter posts?
- How to show a list of only categories (exclude subcategories)
- How to list categories in reverse alphabetical order?
- I want to show category name when using [category] shortcode
- Dropdown menu for subcategories
- How to add categories on a page [duplicate]
- Adding custom ID field to the categories
- How to hide some categories in dashboard
- How to choose the content from a post which is in the right category?
- Getting the first parent of a hierarchical term
- How to get category id’s which are added in main menu?
- Include either name or slug in the include parameter using wp_list_categories?
- get cat id is not working from custom taxonomy
- How to add image for all posts associated to specified category?
- Show the current post’s category, without displaying parent category
- get all categories’ latest post in one query
- Categories show 404 error on multisite installation
- display category with background color
- WooCommerce Product category can be shown with multiple related URLs
- Categories are not available AT ALL under Menus
- change image on single product page with js
- How to get all post categories without custom post type categories?
- Get Categories of multiple posts
- Show subcategories broken when WP/WC updates
- Display menu in category and sub category
- Show alternative menu based on page template AND post category
- How to change category labels in different colors?
- Display Category yearly wise in wp
- Get all subcategories IDs from categorie or categorieIDs
- Redirect category archives to pages
- How to create a category loop on my blog (ACF Plugin)
- How can I make a category function as a page?
- How to add custom option to wp_dropdown_categories?
- How to hide/remove featured images in particular categories post?
- In ACF, how to show custom category selection tab upon selecting a main category
- WooCommerce – Get products from category right before deleting category
- omit categories from main navigation menu
- Renaming default category taxonomy?
- Profiling user with categories
- How to relocate images
- Category next page link not working
- How to display the past events in one of the category?
- Hide category name in URL
- Category archives
- Category For Pages In WordPress
- Inserting categories as a hierarchical terms from frontend form
- Backend – Categories and Menus conflicts
- category__and works, but why?
- Page Type with Category Link
- Own Custom Tags/Category page ( posts)
- If I change the taxonomy of a post will it get a new time stamp?
- Modify functions.php to add a term ‘uses-theme’ set to theme name on post save
- Create custom Perma link
- Display post of current parent category, and in right hand side show child category post
- Category pagination not working in category.php please help me
- Print the associated categories of the current post starting with parent (with option to remove href)
- Add product category to post_class
- Moving Blog and Changing URL
- completely confused with archive.php, category.php
- Limit authors on specific catogories