Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
May 16, 2018 at 5:58 am in reply to: How to search for future events outside of current month in calendar view #1531581
ugapresents
ParticipantYes, that’s the exact functionality I am looking for. Is that possible?
Thanks!
May 15, 2018 at 9:04 am in reply to: I want to display a custom field for venues on the single event page #1530817ugapresents
ParticipantThat worked perfectly! Thanks.
ugapresents
ParticipantThank you Jaime! This got me started in the right track.
I’ll share my code if it’s helpful for anyone…<?php global $post; $events = tribe_get_events( array( 'posts_per_page' => -1, 'post_type' => tribe_venue, ) ); foreach ( $events as $post ) { setup_postdata( $post ); ?> <div class="col-md-6 individual-venue"> <a href="<?php echo get_permalink( $post ); ?>"> <div class="venue-thumbnail" style="background-image:url('<?php the_post_thumbnail_url('twentyseventeen-featured-image');?>')"></div></a> <h2><a href="<?php echo get_permalink( $post ); ?>"><?php echo $post->post_title ;?></a></h2> <hr class="red"/> <div class="venue-info"> <span id="address"> <?php echo tribe_get_full_address(); ?></span> <span id="phone"><?php echo tribe_get_phone(); ?></span> <span id="url"><?php echo tribe_get_venue_website_link( get_the_ID(), 'visit website', true ); ?></span> </div> <a class="btn-outline" href="<?php echo get_permalink( $post ); ?>">Learn More</a> </div> <?php } ?> -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
