marque vehicule
// Register Custom Taxonomy
function marque_de_vehicule() {
$labels = array(
'name' => _x( 'Marques', 'Taxonomy General Name', 'bestofsite' ),
'singular_name' => _x( 'Marque', 'Taxonomy Singular Name', 'bestofsite' ),
'menu_name' => __( 'Marques', 'bestofsite' ),
'all_items' => __( 'Toutes les marques', 'bestofsite' ),
'parent_item' => __( 'Parent Item', 'bestofsite' ),
'parent_item_colon' => __( 'Parent Item:', 'bestofsite' ),
'new_item_name' => __( 'Nouvelle marque', 'bestofsite' ),
'add_new_item' => __( 'Ajouter nouvelle marque', 'bestofsite' ),
'edit_item' => __( 'Editer la marque', 'bestofsite' ),
'update_item' => __( 'Mettre à jour', 'bestofsite' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'bestofsite' ),
'search_items' => __( 'Search Items', 'bestofsite' ),
'add_or_remove_items' => __( 'Add or remove items', 'bestofsite' ),
'choose_from_most_used' => __( 'Choose from the most used items', 'bestofsite' ),
'not_found' => __( 'Not Found', 'bestofsite' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'query_var' => 'vehicule_marque',
);
register_taxonomy( 'véhicule_marque', array( 'petite_annonce' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'marque_de_vehicule', 0 );