Map for each post

New home Forums Pro Add-on Pre-sale questions Map for each post

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #60109
    pluckvermont
    Member

    Hi,

    Will this plugin allow the creation of a unique map for each post, using the post interface (i.e. not creating a map and then using a shortcode)?

    Ideally, I’d like to have fields on the posts page where I could add coordinates that would create a map, on the posts page.

    Is this possible without custom development?

    #60119
    Dylan
    Moderator

    Hi there,

    Thank you for getting in touch, we do appreciate your time.

    Yes, this is supported with the built-in functionality of the plugin. These maps are considered ‘Dynamic’ and are generated on the fly, as needed.

    We have detailed documentation on how to achieve this below:
    – https://www.wpgmaps.com/introducing-maps-by-custom-fields/

    I hope this helps?

    #60146
    pluckvermont
    Member

    Thank you!

    Should the Custom Fields be set to Text, or Number?

    #60150
    Dylan
    Moderator

    Hi again,

    My apologies for not clarifying earlier. In the case of WordPress custom fields, only a single type is support, the ‘text’ type assigned by default within the WordPress post editor.

    Specifically, you should not be using the Maps -> Custom Fields functionality, and instead, you should use the WordPress custom fields as documented here: https://wordpress.org/support/article/custom-fields/

    I hope this helps?

    #60325
    pluckvermont
    Member
    This reply has been marked as private.
    #60326
    pluckvermont
    Member
    This reply has been marked as private.
    #60329
    pluckvermont
    Member
    This reply has been marked as private.
    #60332
    Dylan
    Moderator
    This reply has been marked as private.
    #60339
    pluckvermont
    Member

    Yes, that worked–thanks so much!

    #60340
    pluckvermont
    Member

    Yes, that worked–thanks so much!

    #60344
    Dylan
    Moderator

    Hi there,

    Fantastic news, so glad to hear that helped.

    Please do let me know if you need anything else in the future, I would gladly assist.

    Have a nice day further! 🙂

    #67566
    gezorastislav
    Participant

    Hi we are also using these plugin for maps on every posts and we are using custom fields like documented here: https://www.wpgmaps.com/introducing-maps-by-custom-fields/

    We have a problem that the map is showing only at the bottom of the page. Is there any way how to specify the exact position in every single post?

    Thanks

    #67588
    Dylan
    Moderator

    Hi there,

    Thank you for getting in touch, your time is appreciated.

    Unfortunately, this functionality uses the WordPress content filter to add a dynamically generated shortcode to the bottom of the page/post content.

    As such, it is not currently possible to move this dynamically. However, the shortcode this generates can be found below:
    [wpgmza id='1' lat='39.095963' lng='-103.890122' parent_id='1']

    With that said, you would need to change the parameters for each attribute in the shortcode (id, parent_id, lat, lng). You can add this shortcode manually to each page instead of using the custom fields functionality.

    I hope this helps?

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