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
- Display All Products by Category with WooCommerce
- What is the difference between a “tag” and a “category”?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- get_terms vs. get_categories: does it matter?
- Order get_terms() By Custom Field
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- get all tags from category
- 404 Error On Category and Tags Pages
- Fixing category count
- Checklist of selected categories
- How can I get category ID by category name?
- Rewrite URL with category and tag combined using WP_Rewrite
- get_terms name__like list categories according to letter
- 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?
- Elegant way to add parent categories?
- How can I select a primary category?
- 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
- How to get the url to tag & category base set by the user?
- How to order the get_categories result
- Filter categories using tags
- Sticky posts on home page, search, tag and archives without plugin
- Reflect nested categories in appearance > menus
- Create product category and keyword search form in woocommerce? [closed]
- Send an email when custom post type category is changed
- 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
- Excluding posts from a category but only if they’re not in multiple categories
- Moving Categories submenu to Media, but still opens Posts menu
- Update term count using a callback function
- Remove child products from woocommerce category page [closed]
- Get terms that are associated with products from current category
- How do I edit pre_get_post for the category the user is currently in?
- 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?
- How to totally get rid of Category in my blog?
- Root level category, tag, author and archive pages to work
- Display Categories Assigned to a WooCommerce Product
- Showing all the posts in one page?
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- 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]
- Getting the sub category
- How to select product category while adding new product in woocommerce? [closed]
- Hide uncategorized products from the shop page
- Deleting All tags except categories Wp database
- Is it possible to put tags and category information in the post as text?
- Action hooks returning old category instead of new category
- Update wordpress post terms programatically
- Script to duplicate categories as tags
- Display empty taxonomy terms with get_terms()
- Remove word “Category” from WooCommerce product page [closed]
- Search by word, category, tag, author
- Get a list of Terms for a specific category
- Filtering search results
- Remove Categories and Tags from Admin Dashboard
- WooCommerce change category url and product base
- How to filter archives both by category and tag?
- get_terms won’t display product_cat or any other custom taxonomies when specified
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- display most popular tags of category?
- Get tags specific category
- Can paginate_links() be customized for a specific category or tag?
- Output link to category from WP_Query loop of woocommerce products
- display woocommerce all category title on home page
- When to use ‘get_category_by_path’ vs. ‘get_term_by’ to get category object from `get_query_var( ‘category_name’ )`?
- Any way to assign Post Categories and Tags to Links?
- Add Icons to the Product Category Sidebar Widget WooCommerce
- Add Product categories to WordPress menu without losing hierarchy
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Category vs Tag vs Table
- Help with multiple dropdown tags search
- Display “add to cart” button on every listing in product category page?