diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php index 4b9c44ae..91ecc2ed 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php @@ -19,10 +19,15 @@ class SP_Meta_Box_List_Data { * Output the metabox */ public static function output( $post ) { - $list = new SP_Player_List( $post ); - list( $columns, $data, $placeholders, $merged, $orderby ) = $list->data( true ); - $adjustments = $list->adjustments; - self::table( $columns, $data, $placeholders, $adjustments, $orderby ); + global $pagenow; + if ( is_admin() && in_array( $pagenow, array( 'post-new.php' ) ) && 'sp_list' == get_post_type() ) { + self::table( ); + }else{ + $list = new SP_Player_List( $post ); + list( $columns, $data, $placeholders, $merged, $orderby ) = $list->data( true ); + $adjustments = $list->adjustments; + self::table( $columns, $data, $placeholders, $adjustments, $orderby ); + } } /**