Address function not working

This topic contains 1 reply, has 2 voices, and was last updated by  Dario 10 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6098

    <?php $address = array_filter( eo_get_venue_address() );
    echo implode( ", ", $address ); ?>

    <?php eo_get_venue_address( $venue_slug_or_id ); ?>

    No matter how I format the function, the resulting output is either nothing or “Array”. The address details are in the database however it refuses to show them. Trying to output this on taxonomy-event-venue.php as text.

    Chris Gwynne
    #6113

    This works for me on the taxonomy-event-venue.php page:

    <?php $venue_id = get_queried_object_id(); ?>
    
    <?php if(eo_get_venue_address($venue_id)): $address = eo_get_venue_address($venue_id); ?>
      <h5>Address: <?php echo $address['address'].", ".$address['city'].", ".$address['state']; ?></h5>
      <div class="venue-map"><?php echo do_shortcode('[eo_venue_map width="100%"]'); ?></div>
    <?php endif;?>
    
    Dario
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.