I changed get_category_link to:
esc_attr(get_term_link($category, 'servicecats'))
Thanks to this site
Related Posts:
- Get the the top-level parent of a custom taxonomy term
- get_terms – only top level
- Custom taxonomy terms not showing as list Gutenberg Editor
- How to only list the child terms of a taxonomy and not their parents?
- Order get_terms using a Custom Field
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- How to display custom taxonomies in posts?
- How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?
- get_terms() returns an empty array
- Scheduling posts to update once per day with wp_cron
- wp_options table value
- Custom Taxonomy Meta Admin Column
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How to assign default taxonomy to pages on ‘save_post’?
- wp_query orderby title and meta key value (WP3.1)
- custom taxonomies on permalink
- Landing in 404 Page on Navigating to Custom Taxonomy Archive
- Get main term from a sub term in Woocommerce
- Permalinks for quote authors
- Category page and edit post page with this category very slow
- Using a loop to display terms associated with a post
- Custom Taxonomy tree view not showing correctly in backend
- Custom Taxonomy: Parent still counting deleted Child
- In a loop of custom post type, display first custom taxonomy term
- Generic taxonomy-term template page
- Taxonomy page template changing when using query variables
- Category page for custom-taxonomy shows 404 when using custom permalink structure
- How to count the number of terms in a taxonomy
- All posts are still shown when adding category argument to query
- Get direct children of custom taxonomy
- How to add autocomplete to custom taxonomy for CPT
- List subcategory on taxonomy term page
- Current category link filter
- How to Put Custom Taxanomy Meta Box in Main Column
- Hook to change Custom Tag Taxonomy Links?
- Using wp_list_categories to show more than one custom taxonomy
- Show all posts without a custom taxonomy
- Sorting Tags by Slug Value
- Can you filter wp_dropdown_categories with terms meta?
- one term two taxonomy’s?
- How to create pagination for custom taxonomy in WordPress
- Page and Post return 404 with custom taxonomy
- Order by taxonomy Value [duplicate]
- Retrieving an intersection of two terms from two different custom taxonomies via API
- Category list with indent children list below current category
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- List of Registered Taxonomies of Current Post
- How do I display a custom field from a custom taxonomy in single.php?
- How to get posts which must match both custom taxonomies?
- Display all taxonomy, children and grandchildren with links
- Using custom taxonomies to display hierarchical URLs?
- Taxonomy Parent Name
- Avoid taxonomy-%term%.php if more than one taxonomy
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- Having Issue on Passing Variable into HTML Class Tag
- Proper use of wp_get_object_terms
- Permalink Problems
- Get Terms for Page
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- Can’t get taxonomy ID for each post on archive page
- forward/redirect taxonomy archive of term to a page with same name
- How to add a date creation field when a custom taxonomy relationship is created?
- List custom taxonomies associated to an author’s posts
- Why can’t I access Custom Taxonomy metadata?
- Permalinks with custom taxonomies and regular categories
- WP_Query tax_query – Show results if child has parent X
- Singular custom taxonomy label
- Trash Bin for Categories?
- Custom taxonomy – checking if name includes a declared value
- Display just the Post’s parent Category, not child
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Tree view wp-admin terms
- Retrieve the child terms by having the parent’s information
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to get a taxonomy by a term slug?
- Get taxonomy link with post type slug prefix
- Is it possible to sort the post based on a custom field?
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- qtranslate-x problem with custom term description
- WordPress custom taxonomies new/edit post autocomplete
- Custom Tax Archive of Parents Only?
- ‘Post_tag’ taxonomy tags don’t link to existing posts in CMS
- Sorting terms individually for each post
- Looking for suggestions on creating simple database (Help!!)
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- get meta fields and taxonomy of any post type
- Custom taxonomy – query returns an error
- Change taxonomy of posts
- Getting grandchildren of a post with a specified custom taxonomy?
- Taxonomy Parameters in WP Query to get posts from two different taxonomies
- Update fields with post object and custom tax with wp_insert_post
- Get Posts with matching lowest taxonomies
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Any way to make custom taxonomy field searchable?
- Select Custom Taxonomy from Theme Options
- Remove Tag Cloud Words from Custom Taxonomy
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Rewrite URL for a specific taxonomy [duplicate]
- Template hierarchy html with taxonomy in 6.2