diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php index edb24b8..da94c23 100644 --- a/mu-plugins/carhop-post-types.php +++ b/mu-plugins/carhop-post-types.php @@ -44,6 +44,28 @@ function carhop_create_posttype() ) ); + // ------- ACTUALITES ------- // + + register_post_type( + 'actualites', + // CPT Options + array( + 'labels' => array( + 'name' => __('Actualités'), + 'singular_name' => __('Actualité'), + ), + 'public' => true, + 'has_archive' => true, + 'rewrite' => array('slug' => 'actualites'), + 'show_in_rest' => true, + 'menu_icon' => 'dashicons-admin-post', + 'menu_position' => 4, + 'supports' => array('title', 'editor', 'thumbnail'), + 'taxonomies' => array('etiquettes'), + ) + ); + + // -------DBMOB------- // register_post_type(