• Each season I create the events by using Import Fixtures using a text CSV file. In the CSV file, I insert a line at the beginning of each week’s fixtures that contains values for Date, Time, and Matchday, but has nothing for Venue, Home, and Away. Like so, for example:

    Date,Time,Venue,Home,Away,Matchday
    15/09/2026,19:00,,,,2026-Winter-snooker
    15/09/2026,19:00,Burns Club,Tyros,Cosmos,2026-Winter-snooker

    I do this so I can go in and edit these blank events to name them Round 1, Round 2, etc, so that the number of the round appears at the top of the event list that I setup to show each week’s matches. I can’t put Round 1 etc in the lines of the CSV as that will automatically create bogus teams with those names – I have to edit the events after import to rename them as Round 1, Round 2 etc.

    The problem I see is that for each of these Round n events, when I edit them to set the name up, I find that the Venue field has been automatically populated with one of our venues, rather than being left blank, and similarly the Home and Away team fields have been automatically populated with one of the other teams defined on our site that is not actually playing in this league, and I have to waste time setting these values to Not Set or None.

    Is there a better way of doing the import of fixtures so that I don’t have this extra work to perform after the import?

    • This topic was modified 2 weeks, 2 days ago by NickJP.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @nickjp,

    This is actually a known behavior rather than a bug. When SportsPress builds the event rows during the fixtures import, it automatically assigns a venue and populates the team selectors with existing SportsPress data if those fields are left empty, since the plugin was designed to auto-select the home team’s venue whenever possible, and the team selection fields in the event editor do not default to a genuine blank state the way a CSV cell does. Because your placeholder rows for round headings do not reference any home or away team, SportsPress falls back to whichever venue and teams happen to be first in your site’s lists, which explains why you keep finding them prefilled after import.

    A cleaner approach would be to avoid creating those round heading rows through the CSV importer altogether. Instead, once your weekly fixtures are imported, add the Round 1, Round 2, and so on events manually through Events > Add New, leaving venue on Auto and the team fields untouched.

    A freshly created manual event does not inherit a random venue or team the way an imported blank row does, since the auto-selection logic in the importer is only triggered by the import process itself. This does mean a couple of extra clicks per round, but it should save you from resetting fields to Not Set every season.

    Thanks,
    Savvas

    Thread Starter NickJP

    (@nickjp)

    Thanks, however creating the events manually would actually involve more manual steps than my present method, as besides the title I would also have to set Date/Time, Matchday, League, and Season for each event.

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

You must be logged in to reply to this topic.