// Register Custom Post Type function _offres_emploi() { $labels = array( 'name' => 'Offres d'emploi', 'singular_name' => 'Offre d'emploi', 'menu_name' => 'Offres d'emploi', 'name_admin_bar' => 'Offres d'emploi', 'archives' => 'Item Archives', 'attributes' => 'Item Attributes', 'parent_item_colon' => 'Parent Item:', 'all_items' => 'Tous', 'add_new_item' => 'Ajouter', 'add_new' => 'Ajouter un nouveau', 'new_item' => 'Nouveau', 'edit_item' => 'Modifier', 'update_item' => 'Mettre à jour', 'view_item' => 'Voir', 'view_items' => 'View Items', 'search_items' => 'Search Item', 'not_found' => 'Aucun résultat', 'not_found_in_trash' => 'Le Corbeil est vide', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter items list', ); $args = array( 'label' => 'Offre d'emploi', 'description' => 'La plublication des offres d'emploi', 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( '_offres_emploi', $args ); } add_action( 'init', '_offres_emploi', 0 );