Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ENC – taxo Catalogue

// Register Custom Taxonomy
function enco_register_taxo_machine_categories() {

	$labels = array(
		'name'                       => _x( 'Catégories', 'Taxonomy General Name', 'enco_domain' ),
		'singular_name'              => _x( 'Catégorie', 'Taxonomy Singular Name', 'enco_domain' ),
		'menu_name'                  => __( 'Catégories', 'enco_domain' ),
		'all_items'                  => __( 'Toutes les catégories', 'enco_domain' ),
		'parent_item'                => __( 'Catégorie parente', 'enco_domain' ),
		'parent_item_colon'          => __( 'Catégorie parente :', 'enco_domain' ),
		'new_item_name'              => __( 'Nouvelle catégorie', 'enco_domain' ),
		'add_new_item'               => __( 'Ajouter une catégorie', 'enco_domain' ),
		'edit_item'                  => __( 'Editer', 'enco_domain' ),
		'update_item'                => __( 'Mettre à jour', 'enco_domain' ),
		'view_item'                  => __( 'Voir', 'enco_domain' ),
		'separate_items_with_commas' => __( 'Séparer par des virgules', 'enco_domain' ),
		'add_or_remove_items'        => __( 'Ajouter ou supprimer', 'enco_domain' ),
		'choose_from_most_used'      => __( 'Catégories les plus utilisées', 'enco_domain' ),
		'popular_items'              => __( 'Catégories fréquemment utilisées', 'enco_domain' ),
		'search_items'               => __( 'Rechercher', 'enco_domain' ),
		'not_found'                  => __( 'Not Found', 'enco_domain' ),
		'no_terms'                   => __( 'No items', 'enco_domain' ),
		'items_list'                 => __( 'Items list', 'enco_domain' ),
		'items_list_navigation'      => __( 'Items list navigation', 'enco_domain' ),
	);
	$rewrite = array(
		'slug'                       => 'categorie',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'enco_machine_categories', array( 'enco_machine' ), $args );

}
add_action( 'init', 'enco_register_taxo_machine_categories', 0 );