true, 'labels' => array( 'name' => _x('Thématiquesssse', 'taxonomy general name'), 'singular_name' => _x('Thématique', 'taxonomy singular name'), 'search_items' => __('Chercher une Thématique'), 'all_items' => __('Toutes les Thématiques'), 'parent_item' => __('Thématique Parent'), 'parent_item_colon' => __('Thématique Parent:'), 'edit_item' => __('Editer la Thématique'), 'update_item' => __('Mettre à jour la Thématique'), 'add_new_item' => __('Ajouter une Thématique'), 'new_item_name' => __('Nom de la nouvelle Thématique'), 'menu_name' => __('Thématiques'), ), 'public' => true, // 'show_ui' => true, 'show_admin_column' => true, 'hierarchical' => true, // This will allow URL's like "/locations/boston/cambridge/" 'rewrite' => array( 'slug' => 'thematiques', // This controls the base slug that will display before each term 'hierarchical' => true, // This will allow URL's like "/locations/boston/cambridge/" // 'with_front' => false, // Don't display the category base before "/locations/" ), )); // ————— ————— register_taxonomy('mots-cles', ['fiche-questions', 'fiche-conseils'], array( // This array of options controls the labels displayed in the WordPress Admin UI 'labels' => array( 'name' => _x('Mots-Clés', 'taxonomy general name'), 'singular_name' => _x('Mots-Clés', 'taxonomy singular name'), 'search_items' => __('Chercher un Mots-Clé'), 'all_items' => __('Tous les Mots-Clés'), 'parent_item' => __('Mots-Clé Parent'), 'parent_item_colon' => __('Mots-Clé Parent:'), 'edit_item' => __('Editer le Mots-Clé'), 'update_item' => __('Mettre à jour le Mots-Clé'), 'add_new_item' => __('Ajouter un Mots-Clé'), 'new_item_name' => __('Nom du nouveau Mots-Clés'), 'menu_name' => __('Mots-Clés'), ), 'hierarchical' => false, 'public' => false, 'rewrite' => array( 'slug' => 'thematiques', // This controls the base slug that will display before each term // 'with_front' => false, // Don't display the category base before "/locations/" // 'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/" ), )); } add_action('init', 'add_custom_taxonomies', 0);