'Roman', 'labels' => array( 'name' => 'Romans', 'singular_name' => 'Roman', 'all_items' => 'Tous les romans', 'edit_item' => 'Éditer le roman', 'view_item' => 'Voir le roman', 'update_item' => 'Mettre à jour le roman', 'add_new_item' => 'Ajouter un roman', 'new_item_name' => 'Nouveau roman', 'search_items' => 'Rechercher parmi les romans', 'popular_items' => 'Romans les plus utilisés'), 'rewrite' => array('slug' => 'roman'), 'hierarchical' => false, 'public' => true, 'hierarchical' => true, 'show_in_nav_menus' => true, 'has_archive' => true, ) ); register_taxonomy_for_object_type( 'roman', 'post' ); // 1.2 - Ajout/Modif du niveau du flag function romans_taxonomy_custom_fields($tag) { // Check for existing taxonomy meta for the term you're editing $t_id = $tag->term_id; // Get the ID of the term you're editing $term_meta = get_option( "taxonomy_term_$t_id" ); // Do the check ?>
term_id; // Get the ID of the term you're editing $term_meta = get_option( "taxonomy_term_$t_id" ); // Do the check ?>

.