ugapresents

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • ugapresents
    Participant

    Yes, that’s the exact functionality I am looking for. Is that possible?

    Thanks!

    ugapresents
    Participant

    That worked perfectly! Thanks.

    in reply to: Venue Post Type for WP Query #1527653
    ugapresents
    Participant

    Thank 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
    	}
       ?>
Viewing 3 posts - 1 through 3 (of 3 total)