Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

categorie offre

if ( ! function_exists( 'custom_taxonomy' ) ) {

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'offres', 'Taxonomy General Name', 'probusiness' ),
		'singular_name'              => _x( 'offre', 'Taxonomy Singular Name', 'probusiness' ),
		'menu_name'                  => __( 'Offres', 'probusiness' ),
		'all_items'                  => __( 'Toutes les offres', 'probusiness' ),
		'parent_item'                => __( 'Parent Item', 'probusiness' ),
		'parent_item_colon'          => __( 'Parent Item:', 'probusiness' ),
		'new_item_name'              => __( 'Nouvelle offre', 'probusiness' ),
		'add_new_item'               => __( 'Ajouter une nouvelle offre', 'probusiness' ),
		'edit_item'                  => __( 'Editer offre', 'probusiness' ),
		'update_item'                => __( 'Mettre à jour l'offre', 'probusiness' ),
		'view_item'                  => __( 'Voir l'offre', 'probusiness' ),
		'separate_items_with_commas' => __( 'Séparer les offres avec une virgule', 'probusiness' ),
		'add_or_remove_items'        => __( 'Ajouter ou supprimer une offre', 'probusiness' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'probusiness' ),
		'popular_items'              => __( 'Popular Items', 'probusiness' ),
		'search_items'               => __( 'Chercher une offre', 'probusiness' ),
		'not_found'                  => __( 'Aucune offre n'a été trouvée', 'probusiness' ),
	);
	$rewrite = array(
		'slug'                       => 'offres',
		'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( 'offres', array( 'Références' ), $args );

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

}