Custom taxonomy
Traduction
// Register Custom Taxonomy function custom_taxonomy() { $labels = array( 'name' => 'Types', 'singular_name' => 'Type', 'menu_name' => 'Type', 'all_items' => 'Tous les types', 'parent_item' => 'Type parent', 'parent_item_colon' => 'Type parent :', 'new_item_name' => 'Nouveau type', 'add_new_item' => 'Ajouter un nouveau type', 'edit_item' => 'Editer un type', 'update_item' => 'Mettre à jour le type', 'separate_items_with_commas' => 'Séparer les types avec une virgule', 'search_items' => 'Rechercher un type', 'add_or_remove_items' => 'Ajouter ou supprimer un type', 'choose_from_most_used' => 'Choisir parmi les plus utilisé', 'not_found' => 'Not Found', ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'type', array( 'projects' ), $args ); } // Hook into the 'init' action add_action( 'init', 'custom_taxonomy', 0 );