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