From 83508d138efd9df646818f300a662aa97fbcea34 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 14 Jan 2014 19:31:36 +1100 Subject: [PATCH] Add featured image to event, list and table --- admin/post-types/event.php | 2 +- admin/post-types/list.php | 2 +- admin/post-types/table.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/post-types/event.php b/admin/post-types/event.php index ebaaebe9..28bd29ad 100644 --- a/admin/post-types/event.php +++ b/admin/post-types/event.php @@ -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', diff --git a/admin/post-types/list.php b/admin/post-types/list.php index cbc9d20f..c57fb62f 100644 --- a/admin/post-types/list.php +++ b/admin/post-types/list.php @@ -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', diff --git a/admin/post-types/table.php b/admin/post-types/table.php index ac3fb53a..4c99a7da 100644 --- a/admin/post-types/table.php +++ b/admin/post-types/table.php @@ -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',