How to Fix Google Maps in Oxygen Builder

YouTube video

Written By

Jonathan Jernigan

The deprecation of a Google Maps API caused Maps to break on most Oxygen sites, so we’re going to cover the fix that was released and what you need to do to get your maps working again.

Dynamic ACF Map Field Code from Video:

Add the following as a Code Snippet:

function get_raw_field( $field ) {
$map_location = get_field( $field );
return $map_location['address'];

Then on the Oxygen map element, click the dynamic data button next to the address field.
In the advanced section, use PHP Function Return Value.
For the function name, use get_raw_field and for the paramater, use the name of your ACF Map field.


Learn more about my Oxygen Builder course here:

Visit the premium forums:

Signup for the most inconsistent newsletter this side of the Mississippi

Delivered on a regular-as-I-can basis, I'll share interesting blog posts, announcements, and other pertinent information. I hate garbage emails as much as you and promise not to make it worse.

  • This field is for validation purposes and should be left unchanged.