I was able to resolve this issue by changing the rewrite
slug from product-tag
to product_tag
when registering the taxonomy. It looks like WP does not like the hyphen and prefers the underscore.
$args = array(
'hierarchical' => false,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'update_count_callback' => '_update_post_term_count',
'query_var' => true,
'rewrite' => array( 'slug' => 'product_tag' ),
);
register_taxonomy( 'product-tags', 'product', $args );
Related Posts:
- Is There a Difference Between Taxonomies and Categories?
- Woocommerce get category image full size
- Control term order on a per-post basis
- Programmatically create product category and add thumbnail in woocommerce
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Use get_term_children to get the sub category of a parent category for the current post
- Set post categories to include parents when setting child category
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- Pagination is not working properly in Product Category/Tag pages
- Is There a Difference Between Taxonomies and Categories?
- Display all product tags associated with a specific product category
- How to store category and tags separatly on wordpress?
- Get WooCommerce product category list in functions.php
- Restrict retrieved terms by category?
- Getting Post Tags From Certain Categories
- Modify functions.php to add a term ‘uses-theme’ set to theme name on post save
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Elegant way to add parent categories?
- Send an email when custom post type category is changed
- Automated adding of one tag to all the posts in a category
- Moving Categories submenu to Media, but still opens Posts menu
- How do I edit pre_get_post for the category the user is currently in?
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Display Categories Assigned to a WooCommerce Product
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Deleting All tags except categories Wp database
- Action hooks returning old category instead of new category
- Display empty taxonomy terms with get_terms()
- Search by word, category, tag, author
- How to filter archives both by category and tag?
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Custom WP_Query for current category (in category.php)?
- Are Category or Tag Archive Pages Possible?
- Woocommerce category show subcategories only/omit posts for specific category
- WC 3.x Get categories from variable product of the cart
- Random post + categories + tags
- Search Posts / Pages with multiple options?
- RSS/XML of all Categories and/or Tags
- Get Tags specific to Category using WooCommerce plugin
- How to get related tags based on a category?
- Needing a snippet for listing category specific tags
- Change thumbnail image depending product category
- Woocommerce custom category pages
- How to list categories within tags?
- Use Tag input metabox style for Categories
- Get posts from specific taxonomy term
- limit a list of tags to one category [closed]
- Have multiple category queries from the URL been fixed yet?
- Categories are not listing their respective products
- Display single category name in woocommerce loop
- woocommerce related products by specific categories [closed]
- How to Link to Most Recent Custom Post of Same Term
- How replace individual elements in the RSS feed with a single string
- Template for product-category page [closed]
- Showing HTML if Post is In Certain Taxonomy Term
- Filter categories/tags to display in multiple metaboxes for selection in back-end
- How can I include custom category and tag base in template files?
- Autolinking keywords in text with tags
- Maintaining a separate posts page for certain categories and don’t show those on home page
- Are tags different than categories?
- Combining these queries? (Same taxonomy term + same category as post)
- displaying the last product comment in the woocommerce category
- Show Posts via cat+cat in URL that are in both Categories doesn’t work
- Add properties to term object
- get_object_term_cache duplicate terms after update to wordpress 6
- Help to display the current categories and tags of a post
- How to make product image inherit from category image
- How to target all woocommerce categories that don’t have any subcategories in them?
- Replace deprecated get_category_children code with get_terms
- How to edit woocommerce sub-category page
- Hide specific category tag on single post page
- Filtering posts in category by tag URL
- echo $category[0]-> cat_name; shows only one category name
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- Woocommerce change tag_id to name
- Add subcategories posts to the counts column at the admin’s categories list
- Category and tag urls return 404 error
- Get category of a taxonomy for a queries object in a loop
- WordPress using get_term to retreive slug not working as expected
- How to exclude category and post_tag taxonomy while displaying custom taxonomy?
- 404 error when i try to search by category or by tag
- List Terms by category
- A simple question regarding tags and categories
- Display related posts with same category or same tag return blank
- How to add a new child category via an SQL statement?
- Loops in category description
- How to create a category or tag available exclusively to the admins and not to the users?
- List products from current category
- Use get variable when rewritten url in wordpress
- Custom Woocommerce Category view
- Sorting Woocommerce products by category and attributes
- How to get Woocomerce categories count
- Issue on Listing Sub Product Categories In Woocommerce
- Categories and products woocommerce wordpress
- Function to reference post meta in place of category Woocommerce
- hide_empty property not working when using get_terms
- Add custom fields to Woocommerce Category Page