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 with you the tl;dr of new blog posts and videos, exciting announcements, and other valuable information from around the WordPress ecosphere. You'll never get more than one email per week from me.

"*" indicates required fields

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