Support

Account

Home › Forums › Front-end Issues › google maps field front end show only address › Reply To: google maps field front end show only address

  • Hi,

    You could explode the string and var_dump the result to find the index to echo, for example:

    $address = explode( ', ', $map_location['address'] );
    var_dump( $address );
    echo $address[1] . ' ' . $address[2];

    But I would save that info in a seperate field to keep it consistent.
    Hope it helps!