I created a custom taxonomy using the following code. Everything works almost perfectly, this one is created. It is available in the admin side menu, as well as in the quick edition on the article listing page. However, I don't have it in the "edit post" admin page (As for categories and tags):
add_action( 'init', 'create_chapitres_taxo', 0 );
function create_chapitres_taxo() {
$labels = array(
'name' => _x( 'Chapitres', 'taxonomy general name' ),
'singular_name' => _x( 'Chapitre', 'taxonomy singular name' ),
'search_items' => __( 'Recherche un chapitre' ),
'popular_items' => __( 'Capitres populaires' ),
'all_items' => __( 'Toutes les catégories' ),
'parent_item' => null,
'parent_item_colon' => null,
'edit_item' => __( 'Editer la chapitre' ),
'update_item' => __( 'Editer la chapitre' ),
'add_new_item' => __( 'Ajouter un chapitre' ),
'new_item_name' => __( 'Ajouter un chapitre' ),
'separate_items_with_commas' => __( 'Séparer les chapitres avec une virgule' ),
'add_or_remove_items' => __( 'Ajouter ou retirer un chapitre' ),
'choose_from_most_used' => __( 'Choisir le chapitre' ),
'menu_name' => __( 'Chapitres' ),
);
register_taxonomy('chapitre','post',array(
'hierarchical' => false,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'update_count_callback' => '_update_post_term_count',
'query_var' => true,
'rewrite' => array( 'slug' => 'chapitres' ),
));
}
but
What can I try to resolve this?