WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] How is there really no way to retrieve Event Attributes via PHP? (5 posts)

  1. topdownjimmy
    Member
    Posted 1 year ago #

  2. Anselm
    Member
    Posted 1 year ago #

    I just attach my question :) My wish is to get some Information (Location, Date, Start-Time) in the sidebar of the Event-Page.

    So according to http://wordpress.org/support/topic/call-current-locationevent-id-in-shortcode you can - for example - get the current location ID by using $EM_Location->location_id. How would I get specific location information? maybe Adress? Domain? All the related information!

    Same thing must be possible for events, too, or not?

    As far as I can see the listet functions from http://wp-events-plugin.com/documentation/advanced-usage/ are only giving lists?

  3. Anselm
    Member
    Posted 1 year ago #

  4. topdownjimmy
    Member
    Posted 1 year ago #

    Well, I was able to figure out a very easy solution. I wonder why I couldn't find this documented anywhere?

    $event = eme_get_event($wp_query->query_vars['event_id']);
    $event_attributes = $event['event_attributes']['Attribute Name'];
    print_r($event_attributes);
  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    considering you're using 'eme_get_event' as a function, you're probably not asking on the right forum... i'm guessing you want events made easy

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.