Support

Account

Home Forums Backend Issues (wp-admin) How to hide Custom Taxonomy?

Solving

How to hide Custom Taxonomy?

  • How to hide Custom Taxonomy box with Display Options?

    On standard post type ( post, page ) it’s possible to hide box, it’s works.

    On custom post type hide only default box, not custom taxonomy boxes.

    There are a way to hide custom taxonomy box?

  • Hi @GnekkoGnek

    ACF does not provide support for custom taxonomy in the ‘hide on screen’ options.
    Perhaps you could use the ACF action such as ‘acf/input/admin_head’ to place some some CSS in the head tag to hide the metabox?

    Please consult the docs page for info about this action

    Hope that helps.

    Thanks
    E

  • For anyone too lazy to go look at the Codex, here it what I used:

    
    // example custom post type is "event"
    // example custom taxonomy is "events-category"
    
    function remove_default_event_category_metabox() {
    	remove_meta_box( 'tagsdiv-events-category', 'event', 'side' );
    }
    add_action( 'admin_menu' , 'remove_default_event_category_metabox' );
  • Awesome, thx for your help, for me works:
    NOT THIS
    'tagsdiv-{$tax-name}' - Custom taxonomies metabox
    BUT THIS
    '{$tax-name}div' - Hierarchical custom taxonomies metabox
    because I have setup:
    hierarchical: true

    hope it helps too for the future 🙂

  • Same here – the meta box name given by @elementh (Stronky) works, the one prefixed with tagsdiv- doesn’t. (WP 5.1.1 and ACF 5.8 RC.)

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘How to hide Custom Taxonomy?’ is closed to new replies.