Add featured image to event, list and table

This commit is contained in:
Brian Miyaji
2014-01-14 19:31:36 +11:00
parent d4c32b92c9
commit 83508d138e
3 changed files with 3 additions and 3 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',