Event Organiser
[resolved] How to display venue address? (4 posts)

  1. earthtojeremy
    Posted 4 years ago #

    Hi -

    I want to automatically display the venue address in taxonomy-event-venue.php. I tried several variations of the code listed on the relevant doc page but so far all I can get it to do is display the word "Array". Can you show me the code to achieve this?



  2. akyusa01
    Posted 4 years ago #

    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..

  3. akyusa01
    Posted 4 years ago #

    found it!

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

    //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']; ?>
    <?php } ?>

  4. earthtojeremy
    Posted 4 years ago #

    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']; ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Event Organiser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic