diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php index 8aa7cac..b78d073 100644 --- a/mu-plugins/carhop-post-types.php +++ b/mu-plugins/carhop-post-types.php @@ -214,7 +214,7 @@ function carhop_create_posttype() ) ); - // -------OUTILS PEDAGOGIQUES------- // + // ------- ARCHIVES PRESSE ------- // register_post_type( 'archives-presse', array( @@ -249,6 +249,25 @@ function carhop_create_posttype() 'menu_position' => 4, ) ); + + + // -------EXPOSITIONS------- // + register_post_type( + 'reportages', + array( + 'labels' => array( + 'name' => __('Reportages'), + 'singular_name' => __('Reportage'), + ), + 'public' => true, + 'has_archive' => true, + 'rewrite' => array('slug' => 'reportages'), + 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''), + 'show_in_rest' => true, + 'supports' => array('title', 'revisions'), + 'menu_position' => 4, + ) + ); } add_action('init', 'carhop_create_posttype');