How to include venue info when using tribe_get_events

Home Forums Calendar Products Events Calendar PRO How to include venue info when using tribe_get_events

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28289
    Earl
    Participant

    https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events

    I am using the tribe_get_events function to create a list of upcoming events. The client wants me to include the venue name along with the event name, time, etc. How do I do that? I don’t see how to do it after reading the support page I link to above.

    Here is my code:

    Upcoming Events

    $current_date,’end_date’=>$end_date,’posts_per_page’=>10) );

    foreach($get_posts as $post) { setup_postdata($post); ?>

    <a href="” id=”post-“>
    <a href="”>ID, true, ‘M j, Y’); ?>
    <!– –>

    #28290
    Earl
    Participant

    I see my code got mangled. Here it is on snipt:
    http://snipt.org/vjgjd6

    #28309
    Barry
    Member

    Hi Earl: have you explored using the tribe_get_venue() function?

    #28457
    Earl
    Participant

    OK great, that worked. I hadn’t seen any documentation about that function before. It’s working now.

    #28460
    Barry
    Member

    Excellent 🙂

    #978210
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to include venue info when using tribe_get_events’ is closed to new replies.