Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    very possible, just haven’t done it ??

    it is however not worth doing just now in my opinion because I’m starting work on making events posts.

    Thread Starter Federico Vezzoli

    (@federicovezzoli)

    thanks markus.
    ideally the workflow will be:
    – collecting data through gravity forms;
    – export data in csv;
    – feed the php script with the csv file and for every entry create an event.

    I thought the csv file was the simplest solution, maybe you can tell me that I can do it straight in WP…

    Thanks

    Thread Starter Federico Vezzoli

    (@federicovezzoli)

    Hey markus,
    could you point me out how to create an event straight to the DB?
    in WP I can use wp_insert_post(), is there anything similar?

    any material would be appriciated.
    thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    you can do it with the EM_Event object, either by passing in an assoc array of DB values or using the get_post method to grab post vars.

    Then, you just run $EM_Event->save().

    I haven’t had a chance to play with the GF api (have a license, great plugin).

    Out of curiosity, why are you using GF for this instead of the event form?

    Thread Starter Federico Vezzoli

    (@federicovezzoli)

    oook that’s a start. thank you!

    yes GF is a very nice plugin, super smooth to use and very powerful.

    I’m using it instead of the event_form beacuse I’ve to collect a lot of data but only a selection of them will made to the event…

    Thanks

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    i see, would be interested to know how easy GF would play with EM. A nice integration idea.

    Thread Starter Federico Vezzoli

    (@federicovezzoli)

    i hope to do something…
    as start I thought to hook the event creation straight to the form submission, but since the data need to be revised before the event creation i’m strugglinga bit to find another solution…

    Thread Starter Federico Vezzoli

    (@federicovezzoli)

    sorry the noob question…
    How I set values to the object before calling the save() fucntion?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)


    $EM_Event = new EM_Event();
    //do what’s needed
    $EM_Event->save();′

    can you reopen this post please and provide more information on how to create assoc array that can be used with EM_Event object.

    @mahe84b

    please check this tutorials
    -https://wp-events-plugin.com/tutorials
    -https://wp-events-plugin.com/tutorials/saving-custom-event-information/

    Thanks aglonwl.
    I will post my solution once am through.

    Thanks once again.

    Really Appreciate your help.

    I am able to successfully import single events.

    Can you suggest how I can dump the recursive events/long events.

    For example for a recursive event the values are obtained as follows from my database:

    1st recursion:

    start date:2012-07-06 10:10:00:000
    end date: 2012-07-06 11:10:00:000

    2nd recursion:

    start date:2012-07-13 10:10:00:000
    end date: 2012-07-13 11:10:00:000

    3rd recursion:

    start date:2012-07-20 10:10:00:000
    end date: 2012-07-20 11:10:00:000

    and so on…..

    How can I convert these to recursive events of Events Manager.

    I have figured out inserting recursive events as well.

    Just 2 things to finish my project:

    1) how can I set the categories and tag values for the events using EM_Event object.

    2) is it possible to set individual timings for each day of week to recursive events.

    Any Help would be highly appreciated. I promise a definite word spread and donation.

    [No bumping. If it’s that urgent, consider hiring someone.]

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    1) you’d just use normal WP functions to add a taxonomy item like
    wp_set_object_terms($EM_Event->post_id, $term_slugs, EM_TAXONOMY_CATEGORY);

    2) sorry, not possible (yet)

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: Events Manager] importing from csv’ is closed to new replies.