diff --git a/dummy-data/players-sample.csv b/dummy-data/players-sample.csv index 0f8ed02b..6e1898be 100644 --- a/dummy-data/players-sample.csv +++ b/dummy-data/players-sample.csv @@ -1,5 +1,5 @@ -DoB,Number,Name,Positions,Teams,Leagues,Seasons,Nationality -1983/05/05,1,Joe Allen,Goalkeeper,Eagles,Primary League|Secondary League,2014,aus -1970/03/10,3,Steven Gerrard,Defender,Kangaroos,Primary League,2014|2013,usa -1990/02/15,5,Daniel Sturridge,Midfielder|Forward,Sharks,Primary League|Secondary League,2014|2013,eng -1987/01/20,6,Gabrielle Gonzalez,Forward,Kangaroos|Sharks,Primary League,2014,esp \ No newline at end of file +Number,Name,Positions,Teams,Leagues,Seasons,Nationality,DoB +1,Joe Allen,Goalkeeper,Eagles,Primary League|Secondary League,2014,aus,1983/05/05 +3,Steven Gerrard,Defender,Kangaroos,Primary League,2014|2013,usa,1970/03/10 +5,Daniel Sturridge,Midfielder|Forward,Sharks,Primary League|Secondary League,2014|2013,eng,1990/02/15 +6,Gabrielle Gonzalez,Forward,Kangaroos|Sharks,Primary League,2014,esp,1987/01/20 \ No newline at end of file diff --git a/includes/admin/importers/class-sp-player-importer.php b/includes/admin/importers/class-sp-player-importer.php index 7aff2890..ad5a4743 100644 --- a/includes/admin/importers/class-sp-player-importer.php +++ b/includes/admin/importers/class-sp-player-importer.php @@ -23,7 +23,6 @@ if ( class_exists( 'WP_Importer' ) ) { $this->import_page = 'sp_player_csv'; $this->import_label = __( 'Import Players', 'sportspress' ); $this->columns = array( - 'post_date' => __( 'Date of Birth', 'sportspress' ), 'sp_number' => __( 'Squad Number', 'sportspress' ), 'post_title' => __( 'Name', 'sportspress' ), 'sp_position' => __( 'Positions', 'sportspress' ), @@ -31,6 +30,7 @@ if ( class_exists( 'WP_Importer' ) ) { 'sp_league' => __( 'Leagues', 'sportspress' ), 'sp_season' => __( 'Seasons', 'sportspress' ), 'sp_nationality' => __( 'Nationality', 'sportspress' ), + 'post_date' => __( 'Date of Birth', 'sportspress' ), ); parent::__construct(); }