Custom Fields
Re-Envisioned
Support General Save date for Grid Builder Map Facet

  • Creator
    Topic
  • #24441
    Trang Nguyen
    Participant

    Hi, I'm using Grid Builder Map Facet (https://wpgridbuilder.com/add-ons/map-facet/) and it needs data in this format:

    The Map facet works with latitude and longitude coordinates. The source type should be a custom field with as value an array containing the coordinates like this:
    [ 'lat' => 5.1025, 'lng' => 40.5548 ]

    Is it possible to save the data of Google Maps field or OpenStreetMaps field (or any others) as their request? I could use ACF but I prefer Meta Box.

    Best.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #24453
    Long Nguyen
    Moderator

    Hi,

    The field Google Maps or Open Street Map saves the data (location) in the following format latitude,longitude,zoom. You can use the function rwmb_get_value() to get only value latitude and longitude for that addon.

    Get more details on this documentation https://docs.metabox.io/fields/map/#getting-field-value.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.