Add featured image to event, list and table
This commit is contained in:
@@ -9,7 +9,7 @@ function sportspress_event_post_init() {
|
||||
'labels' => $labels,
|
||||
'public' => true,
|
||||
'hierarchical' => false,
|
||||
'supports' => array( 'title', 'author', 'comments' ),
|
||||
'supports' => array( 'title', 'author', 'thumbnail', 'comments' ),
|
||||
'register_meta_box_cb' => 'sportspress_event_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_event_slug', 'events' ) ),
|
||||
'menu_icon' => 'dashicons-calendar',
|
||||
|
||||
@@ -9,7 +9,7 @@ function sportspress_list_post_init() {
|
||||
'labels' => $labels,
|
||||
'public' => true,
|
||||
'hierarchical' => false,
|
||||
'supports' => array( 'title', 'author' ),
|
||||
'supports' => array( 'title', 'author', 'thumbnail' ),
|
||||
'register_meta_box_cb' => 'sportspress_list_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_list_slug', 'lists' ) ),
|
||||
'show_in_menu' => 'edit.php?post_type=sp_player',
|
||||
|
||||
@@ -9,7 +9,7 @@ function sportspress_table_post_init() {
|
||||
'labels' => $labels,
|
||||
'public' => true,
|
||||
'hierarchical' => false,
|
||||
'supports' => array( 'title', 'author', 'excerpt' ),
|
||||
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt' ),
|
||||
'register_meta_box_cb' => 'sportspress_table_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_table_slug', 'tables' ) ),
|
||||
'show_in_menu' => 'edit.php?post_type=sp_team',
|
||||
|
||||
Reference in New Issue
Block a user