Bright Labs

Importing a weekly event series into the free The Events Calendar with a CSV file

You run the same class every Tuesday on the free The Events Calendar, and you're tired of typing in each date by hand. Recurring events come with Events Calendar Pro, but here's the workaround: give each date its own row and import them all at once with the free plugin's built-in CSV importer. Here's how to set up the sheet so venues, organizers and times come through, and how to re-import without doubling everything.

What the free plugin gives you

The Events Calendar's WordPress.org page lists recurring events and event Series among the extras that Events Calendar Pro adds. The Events Calendar recurring events guide calls recurring events one of the most popular features of Events Calendar Pro. If you're staying on the free plugin, plan on one event per date.

What the free plugin does have is a built-in CSV import tool. Its import guide says the tool is free and included when you install The Events Calendar. That's the route this post covers: treat each date of your series as its own event, one row each.

Import venues and organizers first

This one is easy to miss. The import guide tells you to import venues and organizers first. The venue column must exactly match the Venue Name of an existing venue. The organizer column must exactly match the Organizer Name.

If the venue already exists in WordPress, open it and copy its name into the sheet character for character. Watch for trailing spaces and different dashes. Exact means exact.

Build the sheet: one row per date

Give each date its own row. In a weekly series, keep the rows identical except for the dates. Fill in one row completely, copy it down, then change the start and end date on each copy.

Event columns that matter for a weekly series
ColumnWhat to put for a weekly seriesWhat the import guide says
TitleThe same title on every rowUsed to match existing events when you re-import
Start and end dateThe date of that week's sessionYYYY-MM-DD recommended
Start and end timeThe same times on every rowIgnored when the event is all-day
All-dayOnly if the session runs all dayWhen true, Start/End Time fields are ignored
TimezoneThe same zone string on every rowMust be a valid timezone string
VenueCopied exactly from the venueMust exactly match the Venue Name of an existing venue
OrganizersOrganizer name, copied exactlySeparate multiple values with commas
CategoriesThe categories for the seriesSeparate multiple categories with commas
Featured imageThe URL of the image fileMust be a direct URL to the image file

The import guide also says example files for each content type are available. Start from the events example, and get the date format right in the first row before you copy it down.

Run the import

Then open the calendar and click through a few weeks. Check the time, venue and image on several dates, not only the first. If everything looks right, publish the imported events.

Re-importing without doubling your events

You'll probably spot a typo and run the file again. The import guide says CSV imports update existing events instead of duplicating them when certain conditions are met. For timed events, all three must hold: the title is identical, the start date and time are exactly the same, and the end date and time are exactly the same.

For all-day events, the title must be identical and the event must be marked as an all-day event.

The catch: if you change the title or a time in the sheet, that row no longer meets those conditions. Don't expect it to update the old event. After a title or time change, check the calendar and delete any leftovers by hand.

When the sheet is more work than the series

A CSV makes sense when your dates are already in a spreadsheet or don't follow a pattern. For a plain weekly class, rebuilding the sheet every term gets old fast.

We built RecurKit for that case. It's a free plugin from Bright Labs that works with the free The Events Calendar. It isn't made by or connected to The Events Calendar's developers. In the event editor, you tick Repeat this event, pick the weekdays and choose when the series ends. When you publish, it creates up to 52 occurrences, each a normal event with the same times, venue, organizers, categories, tags and image.

Later, under Events > Series, you can change the title, times, venue or description of one occurrence and every one after it. The Pro plan, at $9/month per site, adds monthly rules, custom date lists and skip dates. RecurKit 0.1.0 is in beta and waiting for WordPress.org review. Until it's listed, you install it from the zip file.

Sources

Questions

Can the CSV importer create a recurring event series?

Recurring events and event Series are extras that Events Calendar Pro adds. With the free plugin, the workaround is to give each date of the series its own row in the CSV.

Is the CSV import tool included in the free The Events Calendar?

Yes. The import guide says the CSV import tool is free and included when you install The Events Calendar. You'll find it under Events → Import.

Will importing the same file twice create duplicate events?

Not if the rows still match. For timed events, CSV imports update an existing event when the title is identical and the start and end date and time are exactly the same.

Why is the venue missing from my imported events?

The venue column must exactly match the Venue Name of an existing venue. Import your venues and organizers first, then copy their names into the sheet exactly.

Related