• Hi there,

    I have a load of old events from a different system sitting in the database (3,360 to be exact) and would like to get these into the events manager system if possible. Is there a way to do this programmatically?

    I’m guessing that any answer will revolve around the EM_Event class, and I’ve had a look into the source code, but it’s pretty huge! Especially as EM v5 now uses custom post types, it’s getting a little over my head! Is there a way to submit an array of info to the class somehow and then save it?

    Any suggestions?

    Cheers,

    Phil

    http://wordpress.org/extend/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hi Phil,

    Yes there is, you should create an event, populate it, then save it by using $EM_Event->save(). It should take care of the rest for you.

    The tricky part is locations. You need to either supply a new location with the event, or use a previously existing location. Tricky because you may have more than one event at each location, and making that association is the hard part.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Events Manager] Bulk import events’ is closed to new replies.