After a long search! I found a simple answer on a similar case.
just add this line in the custom post type register
"taxonomies" => [ "category", "product-category" ],
then it will do the magic!
Related Posts:
- Custom post type single page returns 404 error
- Single custom post type page redirecting to 404 page
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custom post type single-{custom}.php not working
- What is singular.php?
- Custom Post Types 404 Issue
- Template for specific post of custom post type
- Pagination throws 404 error on custom taxonomy archive pages
- Hierachical Custom post types permalinks not working
- How to disable a Custom Post Type Feed?
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Pre get posts for single post
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- is_singular() not working if called via callback function of admin-ajax.php
- Custom Post Type Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- Removing CPT slug from URL results in 404 error for archive page
- WordPress monthly archive links result in 404
- Display “Post 2 of 4” on single post page?
- Disable single pages and archives and keep preview
- Displaying Meta Box Image
- Make custom post type display as a page
- Create second custom 404 page for selected post type
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Disable single view in register_post_type [duplicate]
- Redirect Single Post CPT (Custom Post Type) to a specific URL
- Need post_type_archive_title function but in ‘single’
- How to check the terms in single custom post type template
- How to show the archive / post type description on Single templates
- Made Custom Post Types, but single.php not working
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Bizarre Permalinks Issue: 404 Errors Everywhere
- Remove single page for custom post type
- How do I display tags for a custom post type single page?
- Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)
- Wrong request query on cpt and tax
- Single template showing all posts of that type
- Custom post URL 404 error
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Set a CPT slug as a base name for all the taxonomies
- WordPress randomly shows 404 errors
- How to display single post from custom post type loop?
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Hierarchical permalinks for custom post type and taxonomy
- Top Level pages in wordpress giving 404, but child pages working fine
- Not Able To Render Single-CustomPostType.php File
- Custom post type pagination 404
- Cant get paginations on single.php to work with my custom post types
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- 404 Error on form submission within custom post type
- Associate page w/ specific single post template?
- Custom WP_Query always respond with 200 status even when no entry
- List of users that clicked a ‘Join’ button at single post
- Custom taxonomy page returns 404
- Inserting custom fields into single.php
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- How to filter a custom post type by custom taxonomy without 404
- Can’t access private custom posttype single- or archives-page
- How to show custom field on specific custom post type posts only when filled
- Post type Permalink
- Custom post type categories gives 404 error
- Direct form to a custom page template
- Permalink Trouble with custom post types
- Permalinks not working (404) for the ‘item’ post type
- Function to allow single post template based on custom taxonomy?
- Problem with custom loop navigation inside the blog page
- WordPress giving me the index
- Give active class to current page on a while loop WP query for custom post types listing
- Can’t Export Custom Post Types With Export Tool In A Custom Theme
- Sudden 404 pages on product category archives
- Custom taxonomy returns 404 even with saving permalinks
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Custom post shows 404 after theme change
- How can I get custom post types to recognize pretty permalink variables?
- Published page but it is page not found
- Assign for all post of a post type a specific single-post template
- Pagination for custom query returns 404
- Custom Post Type slug and WPML gets 404 error
- Add new custom post type screen (admin area) results into 404
- pre_get_posts gives 404 error on Custom Post
- Custom 404 redirect for a luddite
- WP gives 404 error for custom post type with GET variable
- How to show data content from single page which is from custom post type?
- Single Page of Custom Post Type Not Showing the Content Of post
- Edit single page from plugin
- Custom Post Type Rewrite – Page Not Found
- What am I doing wrong with my taxonomy?
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Cannot use pages created on WP
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- Pagination in custom loop for custom post type throwing 404 error
- Two single.php files?
- 404 for children in hierarchical custom post type
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- How do I paginate a custom post type listing on a custom template page?
- WordPress custom post type post and category links 404
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method