- This topic has 3 replies, 3 voices, and was last updated 9 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Importing events
Hello,
We want to migrate from a custom made event-system to a new wordpress site with EME. Is it possible to import events into the wordpress db?
Is there any documentation about it? Which tables, example, … ?
Kind regards,
Herman
Not really, but this might help you:
$wpdb->query(“INSERT INTO “.$table_name.” (event_name, event_start_date, event_start_time, event_end_time, location_id)
VALUES (‘Orality in James Joyce Conference’, ‘$in_one_week’, ’16:00:00′, ’18:00:00′, 1)”);
The $table_name variable is wp_eme_events (typically), the $in_one_week is just a date YYYY-MM-DD formatted, and it points to the location with ID 1.
Of course this does not define RSVP, number of spaces, templates or any other EME settings.
Ok, thanks for the quick reply!
Herman
Hello,
if I would like to include RSVP information in the import as well, what would the $wpdb->query look like?
Regards
Richard