Display only Event name, not address

Home Forums Calendar Products Events Calendar PRO Display only Event name, not address

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1291819
    David
    Participant

    Hi all,

    I’m trying to figure out how to display only the event Venue name, not the name and address.
    I’m editing the template so just trying to find the hook needed to achieve this.

    Currently the code is:

    <?php if ( $venue_details ) : ?>
    			<!-- Venue Display Info only need venue name -->
    			<div class="tribe-events-venue-details">
    				<?php echo implode( ', ', $venue_details ); ?>
    				<!-- <?php
    				if ( tribe_get_map_link() ) {
    					echo tribe_get_map_link_html();
    				}
    				?> -->
    			</div> <!-- .tribe-events-venue-details -->
    		<?php endif; ?>

    This shows the full venue address. Any idea how I can tweak it to show only the Venue name?

    Many thanks in advance!

    #1291824
    David
    Participant

    Sorted 🙂

    <?php echo tribe_get_venue();?>

    #1291832
    Courtney
    Member

    Thanks David. Glad that it is working for you.
    Courtney 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Display only Event name, not address’ is closed to new replies.