WordPress.org

Ready to get started?Download WordPress

Forums

Google Maps Widget
[resolved] Specify location via custom field? (8 posts)

  1. Nick5a1
    Member
    Posted 1 year ago #

    Hello.

    My set up is each post has it's own location, which I'm currently setting using a custom field. Is it possible to specify the address via a custom field, so that the widget shows a different map location for each post?

    Thanks,
    Nick

    http://wordpress.org/extend/plugins/google-maps-widget/

  2. FranceImage
    Member
    Posted 1 year ago #

    Hi,

    The purpose of this plugin is to display one map in a widget (as stated in the description)

    There are 2 plugins more suited for your purpose: http://wordpress.org/extend/plugins/wp-geo/ and http://wordpress.org/extend/plugins/geo-mashup/

    They are designed to handle posts with geolocation

    Have you tried them ?

  3. Nick5a1
    Member
    Posted 1 year ago #

    Thanks for the suggestions. Unfortunately they're not nearly as slick as Google Maps Widget. I would really like to keep the click map for a larger lightbox map functionality.

  4. Nick5a1
    Member
    Posted 1 year ago #

    Is anyone else able to weigh in on my original question.

    Is it possible to specify the address via a custom field, so that the widget shows a different map location for each post?

  5. WebFactory
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, that feature is on our to-do list but unfortunately it's not available at this time. Only thing you could do now is modify the code a bit and hack it yourself until we push out the next version.

  6. FranceImage
    Member
    Posted 1 year ago #

    Here is the hack that you could use provided you have set following metadata in your post: geo_latitude, geo_longitude, geo_zoom, geo_address

    edit gmw-widget.php and locate widget() function

    http://pastebin.com/Zrcn1r0J

    Hope this helps

    Cheers

  7. WebFactory
    Member
    Plugin Author

    Posted 1 year ago #

    @FranceImage - thank you for helping out!

  8. jrbl1078
    Member
    Posted 1 year ago #

    @FranceImage - sorry total noob here with how to integrate php codes and how to apply them in a post. Could you show a step by step on how to do this and as well as how it is implemented. Sorry if this is a stupid question. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.