Adding Taxonomies to Custom Post Type Without Displaying Blog Post Categories


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.


How can I get rid of all of the categories not associated with this custom post type?

Thank you

Rookie Recruits 2 weeks 2023-03-13T19:51:58-05:00 0 Answers 0 views 0

Leave an answer