Support » Plugin: Event Organiser » [Plugin: Event Organiser] How to display venue address?

Viewing 3 replies - 1 through 3 (of 3 total)
  • akyusa01

    (@akyusa01)

    I did this a couple of weeks ago as a test and accidentally deleted my code. I’m still messing around trying to get it back. Once I do I will repost..

    akyusa01

    (@akyusa01)

    found it!

    Ok first I’m doing this all within the loop, so here goes

    <?php
    //Get the description and print it if it exists
    $venue_description =eo_get_venue_description();
    $address_array = eo_get_venue_address($event->ID);
    if(!empty($venue_description)){?><!---- If the venue has a description display it-->
    <div class="venue-archive-meta">
    <p><?php echo $venue_description; ?> located at <<?php echo $venue_description; ?> located at <?php echo $address_array['address'].'<span> , </span>'.$address_array['postcode']; ?>
    </div>
    <?php } ?>

    earthtojeremy

    (@earthtojeremy)

    Thanks, I cut it down to this to just display the address:

    <?php $address_array = eo_get_venue_address($event->ID); ?>
    <?php echo $address_array['address'].' ยท '.$address_array['postcode']; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Event Organiser] How to display venue address?’ is closed to new replies.