I am running into an issue that I am trying to fix. I first needed to find a way to add a category page to custom post type. Which I was able to do with this following code added to the mu-plugin file.
'taxonomies' => array('contractors', 'category'),
However, the problem is that when I select the category page for the custom post type "contractors", I also get all of the categories for the blog post in the same page. I only want the page in the admin panel to display categories for different types of contractors. Not for all of the post types in the website.
When categories in contractor post type is selected. I get this following URL destination in the admin panel. However, it also comes with all categories previously created for blog post. Need to omit those from this category.
/wp-admin/edit-tags.php?taxonomy=category&post_type=contractors
How can I get rid of all of the categories not associated with this custom post type?
Thank you