- This topic has 6 replies, 2 voices, and was last updated 1 month, 2 weeks ago by .
-
Topic
-
I created a google field and added my google api
It works but does not save anything.
I also made sure to add a text field that is mapped to the google field such as described in the doc:
https://docs.metabox.io/fields/map/The Code that AIO generates is this:
'fields' => [ [ 'id' => $prefix . 'some_random_field', 'type' => 'text', 'name' => esc_html__( 'Saved Natively Text', 'text-domain' ), ], [ 'id' => $prefix . 'map_field', 'type' => 'map', 'name' => esc_html__( 'Map', 'text-domain' ), 'address_field' => 'address', 'api_key' => 'SECRET', ], [ 'id' => $prefix . 'address', 'type' => 'text', 'name' => esc_html__( 'Text Field', 'text-domain' ), ], ],
I use AIO so there is no code in the theme
But just to be sure I also tried to add it in the theme, which still does not save the address or anything similar to what I seeStrange enough – this works
https://docs.metabox.io/extensions/meta-box-geolocation/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.