How to create a list of venues?

Home Forums Calendar Products Events Calendar PRO How to create a list of venues?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #74192
    morktron
    Participant

    Hi, it looks like there is no easy point and click method to show a list of venues, unless I’ve missed it.
    How can it be done in php?, I found a code snippet to display a list of organisers and modified it as below:

    ‘venue_organizer’, ‘posts_per_page’ => -1));
    echo ”;

    foreach ($venues as $venue) {
    echo ”;
    esc_html_e($venue->post_title);
    echo ”;
    }

    echo ”;
    ?>

    It just creates an empty /

    of course ideally it would be good to have a venue filter and pagination too but I’ll start with the easy bit of just displaying a list of venues…

    #74193
    morktron
    Participant

    hmm, the code has been stripped, here is what I was copying: http://pastebin.com/E87pCAsm

    #74428
    Barry
    Member

    Hi morktron, have you tried working with our tribe_get_organizers() API function as an alternative?

    #74452
    morktron
    Participant

    Hi Barry, thanks for getting back to me. No I hadn’t tried that, please could you give me an example how to use it to display a list of all the venues? thanks

    #74587
    Barry
    Member

    Sure – this is a fairly minimal example:

    $venues = tribe_get_venues();
    print_r($venues);

    We’ll leave the rest to you (as this is really a custom development question) … good luck!

    #981759
    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 create a list of venues?’ is closed to new replies.