diff --git a/includes/post_types.php b/includes/post_types.php index 245800c..2f01f6b 100644 --- a/includes/post_types.php +++ b/includes/post_types.php @@ -10,7 +10,7 @@ function metiers_patrimoine_create_posttype() { - // **** VOCABULAIRE + // **** ARTISANS register_post_type( 'artisans', array( @@ -29,6 +29,24 @@ function metiers_patrimoine_create_posttype() 'supports' => array('title', 'custom-fields', 'thumbnail'), ) ); + // **** VOCABULAIRE + register_post_type( + 'chantiers', + array( + 'labels' => array( + 'name' => __('Chantiers', 'metiers-patrimoine-theme'), + 'singular_name' => __('Chantier', 'metiers-patrimoine-theme') + ), + 'public' => true, + 'has_archive' => true, + 'show_in_rest' => true, + 'menu_icon' => 'dashicons-hammer', + + + 'menu_position' => 5.1, + 'supports' => array('title', 'custom-fields', 'thumbnail', 'author', 'revisions'), + ) + ); } add_action('init', 'metiers_patrimoine_create_posttype');