• Resolved Yaroslav

    (@yarkm)


    I can’t figure out how to display map with marker, created with advanced custom fields plugin?

    I have created custom field ‘map’ for my posts and i can now save post with map, but map doesn’t show up for visitors. I want to add block with map that will display marker, stored in custom field. Is it possible?

    • This topic was modified 5 years ago by Yaroslav.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey @yarkm,

    You can add market to the map from the Map Block itself. You don’t need to use custom fields for that. Is there a reason you want to do it that way?

    Let us know. ??

    Thread Starter Yaroslav

    (@yarkm)

    @hardeepasrani thanks for you reply.

    I’m really need to have custom field for needs of searching/grouping posts. I have a database of objects and their locations.

    Using method you have suggested for search by coordinates i will need to perform full text search by post_content for all posts and there was not an option at all.

    I’m lookign for a way to profide data from custom field lat/long to the block options.

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey @yarkm,

    That’s a very specific feature and unfortunately it won’t be possible to do with our or any other plugin, as it’s really really specific.

    Hope you understand. ??

    Thread Starter Yaroslav

    (@yarkm)

    Hello @hardeepasrani

    From my point of view, having lat/long field and want to display map marker, based on it, it’s rather broad feature. It’s no problem to write that on my own, but i trying to find ready solution before that.

    But stil your plugin is very helpful and feature reach even without that. So thanks for your time and work then.

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Thank you for your kind words @yarkm! If you want to get started on writing a Block-Editor block for yourself, we have an article that might be helpful for you: https://www.codeinwp.com/blog/adapt-your-plugin-for-gutenberg-block-api/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display map from advanced custom fields’ is closed to new replies.