secteurs
secteurs d’activités
// Register Custom Taxonomy function secteur_taxonomy() { $labels = array( 'name' => _x( 'Secteurs', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Secteur', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Secteur', 'text_domain' ), 'all_items' => __( 'Tous les secteurs', 'text_domain' ), 'parent_item' => __( '', 'text_domain' ), 'parent_item_colon' => __( '', 'text_domain' ), 'new_item_name' => __( 'Nouveau Secteur', 'text_domain' ), 'add_new_item' => __( 'Ajouter', 'text_domain' ), 'edit_item' => __( 'Editer', 'text_domain' ), 'update_item' => __( 'Mettre à jour', 'text_domain' ), 'view_item' => __( 'Voir', 'text_domain' ), 'separate_items_with_commas' => __( 'Séparer par une virgule', 'text_domain' ), 'add_or_remove_items' => __( 'Ajouter ou Supprimer', 'text_domain' ), 'choose_from_most_used' => __( 'Choisir parmi les plus utilisés', 'text_domain' ), 'popular_items' => __( 'Populaires', 'text_domain' ), 'search_items' => __( 'secteur', 'text_domain' ), 'not_found' => __( 'Non trouvé', 'text_domain' ), 'no_terms' => __( 'Pas d'éléments', 'text_domain' ), 'items_list' => __( 'Liste des secteurs', 'text_domain' ), 'items_list_navigation' => __( 'Secteur Navigation', 'text_domain' ), ); $rewrite = array( 'slug' => 'secteur', 'with_front' => true, 'hierarchical' => false, ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'rewrite' => $rewrite, ); register_taxonomy( 'secteur', array( 'cpt_produit', ' post', 'page', ' attachment' ), $args ); } add_action( 'init', 'secteur_taxonomy', 0 );