MAP custom fields - change values manually

Support General MAP custom fields - change values manually

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45678
    pixluserpixluser
    Participant

    Hello,
    I've have a question about manually settings the value of the MAP custom field.
    I've got a custom field linked to the map like that:

    address_mар 0,0,1

    I can't change thoses values directly into the post. I'm only able to change them with the mouse through the map.
    Is there a way to set them manually by values?

    #45684
    PeterPeter
    Moderator

    Hello,

    If you want to set the value manually, you can access the database, table wp_postmeta and update the field value. Please follow the documentation https://docs.metabox.io/fields/map/

    Or use the function to update the value with code
    https://docs.metabox.io/functions/rwmb-set-meta/
    https://developer.wordpress.org/reference/functions/update_post_meta/

    #45686
    pixluserpixluser
    Participant

    I was expecting a simplier solution maybe, it look complicated to me. It's for using with a wpgridbuilder MAP facet.

    I don't need the autocomplete too, fully manual solution would be better for me. Is there something compatible with metabox MAP and wpgridbuilder map, without using the autocomplete?

    Do you know which fields I need to keep to keep a working wpgridbuilder MAP facet, using a manual solution in metabox?

    #45689
    PeterPeter
    Moderator

    Hello,

    You can try to use the text field and save the same format value as the map field: latitude,longitude,zoom. It would work with other plugins and if you want to output the map in the frontend, please follow the documentation https://docs.metabox.io/fields/map/#template-usage

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.