• Resolved Jason

    (@jfischercrowdtorchcom)


    How do you access EM data (Start/End Dates, Location, etc) for a given post_id (thru an API call — not PHP-based code)?

    I can successfully call to “get_posts” to get the posts by post_type “event”. However, when I try “get_post_custom” passing in a post_id, I get nothing returned. Additionally, I have tried “get_post_meta”, which also returns no data.

    Does anyone know how I can, from outside the system w/credentials, access this data? This is for a client and I am trying to keep custom code off their install.

    Thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    maybe you can try something like this

    <?php
     global $post;
     $EM_Event = em_get_event($post->ID, 'post_id');
     echo $EM_Event->output('#_EVENTNAME');
    ?>
    Thread Starter Jason

    (@jfischercrowdtorchcom)

    Thanks man. I wasn’t looking for PHP code (as I’m using the RPCXML api) BUT, I was able to use the extended API to call the EM method to get the meta data.

    I should have pulled the EM code and looked, but I thought I could get that data via regular Meta calls.

    Thanks again

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can you give us some of the data you’ve wanted to call?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘API Access with WP Extended Api’ is closed to new replies.