Remove categories taxonomy from custom post type

enter image description here

I’ve got a custom post type called “Resources”.

How I’ve defined the taxonomy:

    'resource',  // the name of the taxonomy
    'resources', // post type name
        'hierarchical' => true,  
        //'label' => 'Resources',  // display name
        'query_var' => true,
        'rewrite' => array(
            'slug' => 'resources', // This controls the base slug that will display before each term
            'with_front' => false // Don't display the category base before 

How I’ve registered the post type:

                'resources', 'Resource', 'Resources',
                    'menu_icon'     => 'dashicons-welcome-write-blog',
                    'menu_position' => 20,
                    'has_archive'   => true,
                    'public'      => true,
                    'supports' => array('editor', 'title','author','thumbnail', 'revisions'),
                    'taxonomies' => array('post_tag', 'type', 'sector')

As you can see, I do not have the category option selected in 'taxonomies' => array('post_tag', 'type', 'sector'), but it is appearing as an option in the admin:

Why is this?

Read more here:: Remove categories taxonomy from custom post type

Leave a Reply

Your email address will not be published. Required fields are marked *