Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Catégorie de témoignage

if ( ! function_exists( 'cat_temoignage' ) ) {

// Register Custom Taxonomy
function cat_temoignage() {

	$labels = array(
		'name'                       => _x( 'Catégories', 'Taxonomy General Name', 'slc' ),
		'singular_name'              => _x( 'Catégorie', 'Taxonomy Singular Name', 'slc' ),
		'menu_name'                  => __( 'Catégories', 'slc' ),
		'all_items'                  => __( 'Toutes les catégories', 'slc' ),
		'parent_item'                => __( 'Catégorie parente', 'slc' ),
		'parent_item_colon'          => __( 'Catégorie parente :', 'slc' ),
		'new_item_name'              => __( 'Nouvelle catégorie', 'slc' ),
		'add_new_item'               => __( 'Ajouter', 'slc' ),
		'edit_item'                  => __( 'Modifier', 'slc' ),
		'update_item'                => __( 'Mettre à jour', 'slc' ),
		'view_item'                  => __( 'Voir', 'slc' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'slc' ),
		'add_or_remove_items'        => __( 'Add or remove items', 'slc' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'slc' ),
		'popular_items'              => __( 'Popular Items', 'slc' ),
		'search_items'               => __( 'Search Items', 'slc' ),
		'not_found'                  => __( 'Not Found', 'slc' ),
		'no_terms'                   => __( 'No items', 'slc' ),
		'items_list'                 => __( 'Items list', 'slc' ),
		'items_list_navigation'      => __( 'Items list navigation', 'slc' ),
	);
	$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( 'cat_temoignage', array( 'slc_temoignage' ), $args );

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

}