Skip to main content

Importing Events and Locations

Pro PlusEvents Manager I/ORequires an Events Manager Pro Plus license. Compare plans

An import is a saved set of instructions: where to read events from, what to do with them, and how often. You create it once, preview the result, and then run it whenever you like or leave it to run on a schedule. Each run adds what is new and updates what has changed.

This page covers the settings every format shares. Formats with their own extras have their own pages: spreadsheets, Google Calendar, Google Sheets, Meetup and Facebook.

Before you start
  • Events Manager I/O is installed and its license is active (see Install and activate).
  • To import from Google, Meetup or Facebook, connect an account first. The format refuses to open until its credentials are in place.
  • For a one-time load from a spreadsheet, the free CSV import may suit you better.

Create and run an import​

  1. Go to Events I/O then Import and click Add Import.

  2. Choose a format from the list. A plain install offers iCal, CSV and Excel. The Google, Meetup and Facebook plugins add theirs.

  3. Give the import a Reference Name, which is only used to find it again in the list.

  4. Choose the Type (events, locations or both) and the Import Source. For file formats the source is either a File you upload or a URL.

    A new iCal import. The same fields appear for every format, with a different Import Source.

  5. Set the remaining options, described under Import settings, and click Save and Preview.

  6. For CSV, Excel and Google Sheets, the Field Mapping tab opens first. Match each column to a field and click Save Field Mapping. See Spreadsheets.

  7. On the Preview & Import tab, check the list. Every item is ticked to start with. Untick any you don't want, then click Import All (or Import Selected when some are unticked).

Nothing is created on your site until that last click. Once the import has run, its History tab lists what was created and updated.

A saved import has up to four tabs: Settings, Field Mapping (spreadsheet formats only), Preview & Import and History. To run it again later, open it from Events I/O then Import or use the Preview link under its name.

Import settings​

Source and schedule​

SettingWhat it does
Reference NameA name for your own use. Required.
TypeEvents, Events and Locations or Locations. The location choices appear only when locations are enabled on your site and the format carries location data.
Import SourceWhere the data comes from. File formats offer File or URL. Service formats list your connected accounts and what each can read.
Ignore Source IDs?For iCal and spreadsheet formats. Leave on No unless the source's IDs are unreliable. See Source unique identifiers.
FrequencyNone, this is a one-time Import, or how often the import runs by itself. Hidden while the source is an uploaded file. See Run an import on a schedule.
Run betweenOptional start and end dates for the schedule. Leave the start empty to begin now, and the end empty to run with no end date.
Ignore Duplicate Events?When Yes, an item is skipped if an event with exactly the same name, start and end already exists on your site and was not created by this import. Default No.

Advanced location options​

Click Show advanced location options to see these. They appear for formats that can deliver an address as a single line of text (iCal, spreadsheets and Google Calendar), and they decide how that line becomes an Events Manager location. Meetup and Facebook send structured addresses, so they show only Google API.

SettingWhat it does
Default LocationThe location given to an event that arrives with none. Default: no default location.
Google APIDo not use Google API., Allow Google API to automatically guess the address. or Allow Google API to improve the address information. Needs a Google API key; without one the field is disabled.
Location FormatWhere the venue name sits in the line. The default NAME, ADDRESS reads "Harbor Hall, 12 Quay Street, Maple Bay" as a name followed by an address.
Location Address DelimiterThe character that separates the parts of the address. Default: a comma.
Location Address FormatThe order of the address parts in the source: Address, Town/City, State, Region, Postcode, Country. Tick the parts the source includes and drag them into its order.

Without Google, the line is split on the delimiter and each piece is assigned in the order you set. A location with a name but no address uses the name as its address, and the other way around. A location with no country gets your site's default country.

Imported Item Actions​

SettingWhat it does
Import StatusThe status of newly created events and locations: Publish, Pending Review or Draft. Default Draft, so nothing goes public until you have checked it.
Import UpdatesWhat happens on a later run when an item you imported before has changed at the source: Ignore updates, Update and keep previous post status (the default), Update and change to 'Pending Review' status or Update and change to 'Draft' status.
Attachment ActionsDownload featured image copies the item's image into your media library and sets it as the featured image. Ignore featured image skips images.
Add Import Event Categories, Add Import Event TagsCategories and tags added to every event this import creates, on top of any the source supplies.
Create New Event Categories, Create New Event TagsWhen Yes, a category or tag named in the source that doesn't exist on your site is created. When No (the default) it is dropped.

Result Filters​

Filters narrow what the import reads from the source on each run.

SettingWhat it does
Search TextKeeps only items whose name or description contains this text.
Event Start DateAll Events, Future Events, Past Events, the next or past 7 or 14 days, or a date range you set. Relative choices are worked out from the day the import runs, so Next 14 Days on a daily schedule keeps moving forward.
LimitThe most items one run will import. Items imported on earlier runs don't count toward it.

Read the preview​

The preview shows the items the next run would import, with an icon beside any that will not be created as new:

The itemWhat happens
Was imported before and has not changedSkipped.
Was imported before and has changed at the sourceUpdated, following Import Updates.
Was imported before and has since been deleted on your siteIgnored. A deleted event is not brought back. A deleted location is created again if an imported event still needs it.
Duplicates an event from elsewhere on your siteIgnored, when Ignore Duplicate Events? is on.
Has a location that already existsThe existing location is used.

If the list is empty you see No items found, if you are using result filters, try making them less specific.

Run an import on a schedule​

  1. Open the import and make sure its source is a URL or a connected account. For file formats, set Import Source to URL. The Frequency field only appears then, because an uploaded file can't be scheduled: the file is deleted from your server after it has been imported.

  2. Set Frequency to Once Hourly, Twice Daily, Once Daily, Twice Weekly, Weekly, Every Two Weeks or Monthly.

  3. Click Save and Preview. A notice says This import is scheduled but not active.

  4. Click Activate in that notice. The notice changes to This import is scheduled and active., with a Deactivate button.

A schedule does nothing until the import is activated. You can also activate and deactivate imports from the list at Events I/O then Import, one at a time or in bulk.

Good to know:

  • Scheduled imports run through WP-Cron, so they depend on your site receiving visits or on a real cron job calling it.
  • A scheduled run imports everything the source returns, within your filters and Limit. There is no preview step.
  • The import runs as the WordPress user who created it. Imported events and locations belong to that user, and for Google, Meetup and Facebook it uses that user's connected accounts.
  • Each scheduled pass handles up to five imports of the same frequency, newest first. If you need more than five, spread them over different frequencies.

How repeat imports are matched​

Each import keeps its own record of every item it has created, so it can recognize the same item next time.

  • An item is identified by the ID its source gives it: the UID in an iCal feed, the event ID on Google Calendar, Meetup or Facebook, or the column you map to Event Unique ID (Import Source) in a spreadsheet.
  • When the source gives no ID, I/O makes one from the event's name, start and end (or, for a location, its name and address). Changing any of those at the source then looks like a new event.
  • On each run, a known item is compared with the last version imported: name, description, image, categories, tags, dates, timezone and location. If anything differs it is updated according to Import Updates. If nothing differs it is skipped.
  • The record belongs to the import, not to the source. Two imports reading the same feed create two copies of each event, unless Ignore Duplicate Events? is on.
  • Deleting an import deletes its record and its history. The events it created stay on your site.
Edits you make to imported events

With Import Updates on one of the update choices, a change at the source replaces the imported event's details on your site, including edits you made here. If you plan to edit imported events by hand, set Import Updates to Ignore updates.

What is imported​

DataBehavior
Name, description, dates, timesImported for every format. An item with no end time, or with dates only, becomes an all-day event where the format reports it that way.
TimezoneThe source's timezone is kept. An item without one gets your site's timezone.
Recurring eventsEach occurrence is imported as its own single event. In an iCal feed, a repeat rule with no end date is expanded for two years ahead.
LocationsCreated once and reused. With Type set to Events, location data is ignored. Since I/O 1.3, hybrid events keep both their physical venue and their virtual location in imports and exports.
ImagesDownloaded from the image's URL, which must end in .jpg, .jpeg, .png or .gif. Location images are downloaded too.
Categories and tagsMatched to your existing categories and tags by name, slug or ID.
Bookings and ticketsNot imported. Where a source reports a price, a ticket link or attendance numbers, they are stored with the event for the placeholders below.
OwnerThe user who created the import.

Show the source's details on your site​

An imported event remembers where it came from. These placeholders print those details in your event formats:

PlaceholderPrints
#_EMIOSOURCEThe format the event or location was imported from, for example "Meetup".
#_EMIOEVENTURLThe event's page at the source, or the URL from an iCal item or a mapped column.
#_EMIOBOOKINGSURLWhere to book or buy tickets at the source.
#_EMIOBOOKINGSPRICEThe price reported by the source, formatted as a number.
#_EMIOCURRENCY, #_EMIOCURRENCYSYMBOLThe currency's name and its symbol.
#_EMIOSPACES, #_EMIOAVAILABLESPACES, #_EMIOBOOKEDSPACESTotal, remaining and taken spaces as reported by the source.
#_EMIOLOCATIONURLFor locations, the location's page at the source.

A number the source did not report prints as "N/A".

Wrap parts of a format in these conditional placeholders to show them only for imported events:

ConditionalTrue when
{is_imported}, {not_imported}The event or location was, or was not, created by an import.
{is_imported_meetup}, {not_imported_meetup}It was imported from that format. Use ical, csv, excel, google-calendar, google-sheets, facebook or meetup.
{imported_is_public}, {imported_is_private}The source marks the event as public or as restricted (for example an event of a private Meetup group).
{has_event_url}The event has a source URL.
{has_bookings_url}, {no_bookings_url}It has, or lacks, a booking link.
{has_bookings_price}, {no_bookings_price}A price was reported.
{has_bookings_spaces}, {no_bookings_spaces}A number of spaces was reported.
{has_bookings_confirmed}, {no_bookings_confirmed}A number of confirmed attendees was reported.
{has_location_url}For locations, the location has a source URL.

For example, to send visitors to Meetup to RSVP:

{has_bookings_url}<a href="#_EMIOBOOKINGSURL">RSVP on #_EMIOSOURCE</a>{/has_bookings_url}

Manage imports and history​

Events I/O then Import lists your imports with their Format, Source, Frequency and Last Run. Hover over a name for Edit, Delete, History, Preview and Activate or Deactivate. You can filter the list by frequency and by active or inactive.

The Import History (All) tab shows every run of every import: the date, the number of records affected, and how many were created, updated or failed. An import's own History tab shows the same for that import, down to each item.

Troubleshooting​

There is no Events I/O menu

The I/O license is not active. Activate it in Events then Settings then Licenses. The menu is also hidden from anyone who is not an administrator.

"A url must be provided for recurring imports."

The import has a Frequency but its source is an uploaded file. Switch the source to URL, or set Frequency back to None, this is a one-time Import.

"Only N items can be imported at a time via preview"

The preview form can only submit as many items as your server's PHP max_input_vars setting allows. Scheduled runs are not affected. Either ask your host to raise max_input_vars, or set Limit to the number in the message and import in several passes. Items already imported don't count toward the limit, so each pass picks up the next batch.

A scheduled import is not running

Check that the import shows as active in the list, that today falls inside its Run between dates, and that WP-Cron is running on your site. If you have more than five imports on the same frequency, move some to another frequency.

The import times out or the URL can't be read

A URL source has ten seconds to respond. If the source is slow, download the file and upload it as a one-time import, or ask the source's owner for a faster feed.

Events keep being duplicated on every run

The source is probably issuing a new ID for each event every time it is read. See Source unique identifiers.