list venues and organizers with thumnail and phone number

Home Forums Calendar Products Events Calendar PRO list venues and organizers with thumnail and phone number

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1040281
    wendy
    Participant

    Is there any way to create a list that would output
    venue name
    phone number
    thumbnail (featured image)
    and a list of the dates for which there is an event scheduled?

    Same for organizer?

    (It would be great to have a widget that could do this. 🙂
    choose to list by events, or venues or organizers and then choose what elements to show. )

    #1041011
    Geoff
    Member

    Hey there, Wendy!

    Yes, that is possible! In fact, you could do it for both organizers and venues. Here’s an example of how it would work for organizers:

    $args = array( 'post_type' => 'tribe_venue', 'posts_per_page' => 3 );
    $lastposts = get_posts( $args );
    foreach ( $lastposts as $post ) :
    setup_postdata( $post ); ?>
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <?php echo tribe_event_featured_image( null, 'full' ) ?>
    <?php echo ttribe_get_organizer_phone() ?>
    <?php endforeach;
    wp_reset_postdata(); ?>

    You could do a similar thing for venues.You can add additional details to the loop (such as address, phone number, address, etc.) and can find those in our documentation.

    Will this get you started? Please let me know. 🙂

    Cheers!
    Geoff

    #1041114
    wendy
    Participant

    thanks so much. do i just drop this into my theme’s functions.php?

    #1041120
    Geoff
    Member

    My pleasure!

    That would go in the template you plan to use it in. You could use one of your existing theme templates or a new one altogether. 🙂

    Cheers!
    Geoff

    #1076211
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘list venues and organizers with thumnail and phone number’ is closed to new replies.