diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php index 3764fa5..e55cfdc 100644 --- a/mu-plugins/carhop-post-types.php +++ b/mu-plugins/carhop-post-types.php @@ -147,8 +147,8 @@ function carhop_create_posttype() 'has_archive' => true, 'rewrite' => array('slug' => 'communiques-presse'), 'show_in_rest' => true, - 'show_in_menu' => 'carhop-presse', 'supports' => array('title', 'custom-fields', 'thumbnail'), + 'show_in_menu' => 'carhop-presse', 'menu_position' => 4, ) ); @@ -187,7 +187,26 @@ function carhop_create_posttype() 'rewrite' => array('slug' => 'outils-pedagogiques'), 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''), 'show_in_rest' => true, - 'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'), + 'supports' => array('title', 'editor', 'thumbnail'), + 'menu_position' => 4, + ) + ); + + // -------OUTILS PEDAGOGIQUES------- // + register_post_type( + 'archives-presse', + array( + 'labels' => array( + 'name' => __('Archives de presse'), + 'singular_name' => __('Archive de presse'), + ), + 'public' => true, + 'has_archive' => true, + 'rewrite' => array('slug' => 'archives-presse'), + 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''), + 'show_in_rest' => true, + 'supports' => array('title','thumbnail'), + 'show_in_menu' => 'carhop-presse', 'menu_position' => 4, ) );