Taxonomy option 'show_in_nav_menus' does not work
-
$args = array( 'public' => true, 'hierarchical' => true, 'show_ui' => true, 'show_in_nav_menus' => false, 'args' => array( 'orderby' => 'title' ), 'rewrite' => array( 'slug' => 'collections', 'with_front' => false ), 'query_var' => true, ); register_taxonomy( 'collection_categories', 'collection', $args );
I want to make this taxonomy so that it cannot be accessed via the dashboard sidebar but you can still use it for a custom post type. If I disable “show_in_nav_menus”, nothing happens. I would expect this to hide the link in the nav menu, what else would that option be for?
If I disable “show_ui” then it does not generate the link, but it also does not generate the category box for my custom post type making it useless.
How do I hide the shortcut in the nav menu without hiding the category box when creating a post?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Taxonomy option 'show_in_nav_menus' does not work’ is closed to new replies.