You cannot use category slug as its the default slug for WordPress category. Try register your taxonomy with some other taxonomy name like product-category and use taxonomy-product-category.php file to render individual taxonomy category layout(main1, main2 etc.)
Related Posts:
- Taxonomy Templates… by hierarchical level?
- How can I set up a category “overview” page?
- Which template name to use for taxonomies but not their terms?
- Landing in 404 Page on Navigating to Custom Taxonomy Archive
- how to get title to custom tags page
- Taxonomy landing pages
- Getting yoast title for custom taxonomy
- Current category link filter
- How do I create a custom archive page depending on the custom taxonomy type?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Is there a template file to list all terms of a given custom taxonomy?
- How to use multiple archive templates for a taxonomy?
- Override Taxonomy Template
- Output unique taxonomy terms of posts inside a loop
- Avoid taxonomy-%term%.php if more than one taxonomy
- Is it safe to register a taxonomy without using any hooks?
- how to get term id from current post type instead of name
- Sort and paginate custom post taxonomies alphabetically
- how to access the $query variable inside taxonomy-xxx.php template file?
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Get taxonomy link with post type slug prefix
- See double taxonomy inputs in WP editor
- setting a custom post type taxonomy term by code
- transfer two existing taxonomy terms into one custom metabox
- Get link for taxonomy to show top-level terms
- Custom TaxonomyTemplate
- Dynamic drop down of child terms and then drop down posts
- How to get list of custom taxonomies based on custom post type
- Templates files for custom post type with custom tags
- Creating a Taxonomy Page [duplicate]
- How to display custom taxonomy
- How to make an sql query to exclude everything but custom taxonomy terms in table wp_terms?
- Where to put a migration script to switch post information?
- WordPress doesn’t respect the template hierarchy?
- How to associate string with individual use of taxonomy term
- Custom Taxonomy Template Variables Available?
- Template hierarchy html with taxonomy in 6.2
- Using wp_query is it possible to orderby taxonomy?
- “tax_query” parameter not working with WP_Query
- How do I exclude a custom taxonomy from the post loop
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- How to modify a taxonomy that’s already registered
- Custom post type single-{custom}.php not working
- Retrieve posts by term id custom query
- Change order of Custom Taxonomy List
- Get the the top-level parent of a custom taxonomy term
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_terms – only top level
- Custom taxonomy terms not showing as list Gutenberg Editor
- Altering the appearance of custom taxonomy inputs
- How to only list the child terms of a taxonomy and not their parents?
- Get term SLUG by term ID
- Is ACF being a honey trap? [closed]
- Get term name from term ID?
- Check if Current Category has Children
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- WordPress taxonomy radio buttons
- How to prevent new terms being added to a custom taxonomy?
- Custom taxonomy, get_the_terms, listing in order of parent > child
- How to remove the tag cloud from custom taxonomy admin page?
- custom taxonomy and pages rewrite slug conflict gives 404
- Inserting a term into a custom taxonomy
- Count posts in custom taxonomy
- How to add images to taxonomies?
- Read-only taxonomy (user can assign term but can’t create or edit existing terms)
- Remove taxonomy base or term from url
- Can you add the visual editor to the description field for custom taxonomies?
- Adding Category/Tag/Taxonomy Support to Images/Media
- Custom taxonomy query broken after upgrade to 4.4
- Add default WordPress tag meta box to User Profile
- Custom Taxonomy Endpoint Pagination using paginate_links()
- How do I get the top-level terms in a custom taxonomy?
- Check if a post has any term in this custom taxonomy?
- Query Custom Post by Taxonomy Category
- Custom columns on edit-tags.php main page
- Loop through custom taxonomies and display posts
- How do I add a custom taxonomy as an option for menus under “Appearance” > “Menus”
- custom post type taxonomy “tag” archive : no post found
- How to get WooCommerce Product Category Link by ID?
- Order get_terms using a Custom Field
- Add custom taxonomy fields when creating a new taxonomy
- get_term_children for immediate children only (not grandchildren)
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Custom taxonomies capabilities
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Can’t get a custom template taxonomy page to display
- Query users by custom taxonomy and user role
- Display category posts grouped by taxonomy
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Custom Taxonomy and Tax_Query
- Custom Taxonomy Archive Page
- How to display custom taxonomies in posts?
- Get taxonomy names by post id
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- How to assign multiple roles for capabilities array withini register_taxonomy function?
- Filtering custom taxonomies