Matières
Taxonomie pour des thèmes de tutoriaux
// Register Custom Taxonomy function custom_taxonomy_matiere() { $labels = array( 'name' => _x( 'Matières', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Matière', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Matières', 'text_domain' ), 'all_items' => __( 'Toutes les matières', 'text_domain' ), 'parent_item' => __( 'Matière Parent', 'text_domain' ), 'parent_item_colon' => __( 'Matière Parent:', 'text_domain' ), 'new_item_name' => __( 'Nouvelle matière', 'text_domain' ), 'add_new_item' => __( 'Ajouter une nouvelle matière', 'text_domain' ), 'edit_item' => __( 'Modifier une matière', 'text_domain' ), 'update_item' => __( 'Mettre à jour la matière', 'text_domain' ), 'separate_items_with_commas' => __( 'Séparer les items par une virgule', 'text_domain' ), 'search_items' => __( 'Rechercher une matière', 'text_domain' ), 'add_or_remove_items' => __( 'Ajouter ou supprimer une matière', 'text_domain' ), 'choose_from_most_used' => __( 'Choisir parmi les matières les plus utilisées', 'text_domain' ), 'not_found' => __( 'Non trouvée', 'text_domain' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'matiere', array( 'post', ' tutorial' ), $args ); } // Hook into the 'init' action add_action( 'init', 'custom_taxonomy_matiere', 0 );