Display the street address field as text from venue into single-event.php page

WordPress Event Management, Calendars & Registration Forums Frontend Submissions Display the street address field as text from venue into single-event.php page

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 7 years, 8 months ago.

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

    I’d like to display the street address, city, state, and zipcode to my single-event.php

    Right now I only have a map, most people want the exact address that was submitted int the FES form using the venue fields.

    Webmaster CCC
    #27164

    You can either add this to event-single-event-meta.php or single-event.php (if you have that template):

    $venue_id = eo_get_venue(get_the_ID());
    $address_details = eo_get_venue_address($venue_id);
    echo implode( ', ', array_filter( $address_details ) );
    

    That will echo the address with each component separated by a comma (empty parts removed). See the codex for more details.

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