• Resolved Dirk

    (@dirkhag)


    I am constructing a special tailored list. How can I get the EVENTLINK of an event if I only have the EVENT ID.

    The following code is not working in my case. Is there an alternative code without $EM_EVent???

    $EM_Event->output("#_EVENTLINK")

Viewing 2 replies - 1 through 2 (of 2 total)
  • No, you really need the $EM_EVENT, because the output() function is a “member function for the EM_Event Object” and each EM_Event Object contains the info for that specific event. ??

    So, if you want to call that function somewhere when you are not already in the (correct) EM_Event Object, you will have to call it first.

    If you are using the event ID:

    $EM_Event = new EM_Event( $event_id );
    echo $EM_Event->output("#_EVENTLINK");

    When using the post ID:

    $EM_Event = new EM_Event( $post_id, 'post_id');
    echo $EM_Event->output("#_EVENTLINK");
    Thread Starter Dirk

    (@dirkhag)

    Yes, Patrick! Perfect! Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get event meta by event_id’ is closed to new replies.