How to set taxonomy hierarchical level to 2?

You can’t set a level when you create the taxonomy. The only way to enforce a level is by watching the term creation: Filter create_term; that’s the earliest filter that allows us to change parent term ID. For no obvious reasons the filter pre_insert_term is lacking that information … it would probably too easy. Then … Read more

Remove categories from post edit page, but keep in sidebar?

You can hide them in the Screen Options dropdown (which is a per-user basis) if that’s what you’re looking for: You could also remove the metaboxes with remove_meta_box seen here: https://codex.wordpress.org/Function_Reference/remove_meta_box So depending on what the HTML ID of that custom box is, you could add a function. Let’s say Client Types is client-types, then … Read more

How to make custom post taxonomy looks like regular categories?

Within your functions.php: function custom_admin_scripts( $hook ) { if ( $hook == ‘post.php’ && get_post_type() == ‘your_custom_post_type_key’ ) { wp_enqueue_style( ‘your_custom_post_type_key’, get_stylesheet_directory_uri() . ‘/my_css_file.css’, array(), false, ‘all’ ); } } add_action( ‘admin_enqueue_scripts’, ‘custom_admin_scripts’ ); Change your_custom_post_type_key to your custom post type key Change /my_css_file.css to your real path towards your css file. Within your css … Read more