• I just created a 2 taxonomy (a category and a tag) for my custom post type. Those two taxonomy is working fine but Default tag and category taxonomy still appearing in custom post type editor. How can I remove default taxonomies from custom post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • jack randall

    (@theotherlebowski)

    if you used a plugin to create the custom post type then you should have a section in the post type creation settings where you can specify which elements are displayed in the editor. otherwise, if you created it by hand coding your post type into the functions.php then you need to add in the details of the things you want to hide from the editor. i think it’s under the ‘supports’ part of the $args array.

    https://www.smashingmagazine.com/2012/11/08/complete-guide-custom-post-types/

    Thread Starter Sykat

    (@sykat)

    I am not using any plugin. and your link is no help but wast of time. There are nothing about “deleting taxonomy”. I am learning and created couple of custom post, custom taxonomy etc.. But stuck in this issue….
    I tried

    remove_meta_box( 'categorydiv','albums','side' );
    remove_meta_box( 'tagsdiv-post_tag','albums','side' );

    as my custom post type name is albums but it return a fatal error.

    Call to undefined function remove_meta_box()

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove default taxonommy for custom post?’ is closed to new replies.