• Is it possible to return the meta data of an ai1ec_event from a WP_Query (date of the event, event price, location, etc.)?

    From within the loop I’ve been able to get the title, content, and permalinks using the standard functions but it’s not clear to me how to access the event’s meta data.

    I’ve tried finding it with get_post_custom($post_id), get_post_meta($post_id) but the data I’m looking for doesn’t seem to be associated with the post in the traditional manner.

    How would I find this data?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’d urgently need a solution on this too please. How to get the event instance with all the event details using the post_id? Or at least the duration of the event. Please help. Thanks.

    • This reply was modified 8 years, 1 month ago by kuruczp.
    • This reply was modified 8 years, 1 month ago by kuruczp.
    Thread Starter jazibobs

    (@jazibobs)

    Bumping this as I’m still waiting on Time.ly to acknowledge this question’s existence.

    javied

    (@javied)

    Hi,

    The start and end date of event are not strong in meta.They are storing in a separate table wp_ai1ec_events.

    We need to create the event object, I dont know how to create the object in my theme functions.php, as I try to create the event object like this :
    $event = new Ai1ec_Event( $post->ID )
    but is throwing an error that class Ailec_Event not found.

    Kindly help me out please.

    Thanks

    • This reply was modified 8 years ago by javied.
    tgelles

    (@tgelles)

    Bump as I’d also like to know about this. All I want on my front-page.php is a simple WP_Query where I display something like:

    <h1><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
    <h2>THE EVENT START TIME</h2>
    <p><?php the_content(); ?></p>

    Similar to jazibobs, I can get the standard functions but nothing beyond that. This shouldn’t be this difficult.

    • This reply was modified 8 years ago by tgelles.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do you get a single event’s meta data within a custom query?’ is closed to new replies.