Home Forums Front-end Issues Google map address Reply To: Google map address

  • hey raeanne,

    sure – here you go. i am using the ACF repeater and the HTML address tag (i’m making a page with multiple contacts listed)

    <?php if( have_rows(‘contacts’) ): ?>
    <section class=”contact_list”>
    <?php while( have_rows(‘contacts’) ): the_row();

    // vars
    $contact_address = get_sub_field(‘contact_address’);

    <?php $address = explode( “,” , $contact_address[‘address’]);
    echo $address[1].'<br/>’; //street number and line break
    echo $address[2].’,’.$address[3]; //city, state
    <?php endwhile; ?>
    <?php endif; ?>