• Resolved krauses87

    (@krauses87)


    Hi Sportspress-team,

    i was trying to import events (matches), but i was not able to import events with 2 teams within the “Teams” column. Team A vs Team B. When i look at the script, i can’t find any kind of delimiter.

    My example looks like that:

    Date,Time,Venue,Teams,Results,Outcome,Players,Goals,Assists,Yellow Cards,Red Cards
    2016/06/15,19:15:00,,Team A vs team B,,,,,,,

    I want to import all matches, so sportspress should automatically add a new event.

    Could you tell me how to this and give a hint?
    After my code review, the import mechanism isn’t able to do this, right?

    Thanks for your help

    Kind regards

    Stefan

    https://wordpress.org/plugins/sportspress/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Roch

    (@rochesterj)

    Hi Stefan!

    For CSV files the line break separates each of your data entries. So you can add multiple events by adding each in a different line, you could even copy the current (working) one and paste for the other lines

    Kind Regards,
    -Roch

    Thread Starter krauses87

    (@krauses87)

    Hi Roch,

    I know that a new line will be a new event. But I don’t know the exact format for the team column. The example also has only one team, but i have two teams.

    Could you show me one import line with the following conditions?

    Date: 2016/06/16
    Time: 13:00:00
    Teams: Team A vs. Team B

    Kind regards,

    Stefan

    You must not set date and time on the next row.

    2016/06/15,19:15:00,,Team A,,,,,,,
    ,,,team B,,,,,,,
    2016/06/15,19:15:00,,Team C,,,,,,,
    ,,,team D,,,,,,,
    2016/06/16,19:15:00,,Team A,,,,,,,
    ,,,team C,,,,,,,
    Roch

    (@rochesterj)

    Thanks for helping, @yoye_ !

    Let us know how it works, Stefan

    Kind Regards,
    -Roch

    Thread Starter krauses87

    (@krauses87)

    Thanks yoye_!

    Now my import works and i understand the scheme!

    Kind regards,

    Stefan

    Roch

    (@rochesterj)

    I’m glad it’s resolved!

    Please, let us know if you need anything else.

    Kind Regards,
    -Roch

    Hello
    I’m also trying to import a csv file.
    I’m using this header
    Date;Time;Venue;Teams;
    But can I also add Competition and Season as a tag?

    Thanks

    Roch

    (@rochesterj)

    Hi diallito!

    A new topic is the way to go

    Kind Regards,
    -Roch

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘event csv import’ is closed to new replies.