Support

Account

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

  • This is the solution I ended with:

    <?php $location = get_field('google_map');
    if( $location ): ?>
        <?php echo esc_attr($location['street_name']); ?>&nbsp;
    	<?php echo esc_attr($location['street_number']); ?><br />
    	<?php echo esc_attr($location['post_code']); ?>&nbsp;
    	<?php echo esc_attr($location['city']); ?><br />
    	<?php echo esc_attr($location['country']); ?>
    <?php endif; ?>

    No state in Belgium but could add
    <?php echo esc_attr($location['state']); ?>
    as well