FEATURE Declaring actualites post-type
This commit is contained in:
parent
2a4fa10fec
commit
49980e322f
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user