• Resolved D-Johnson

    (@d-johnson)


    Hi,

    i would like to use your widget in my sidebar, to show the location of the current post topic. I have dynamic address details in a custom field [ACF] in every post.
    I couldn’t get this thing to work. The displayed address is static and must be defined, when the widget ist placed in the sidebar.

    I tried to edit your code to support my custom fields, but i wasn’t able to retrieve those fields in the widget.

    Do you have a hint for me to support these dynamic custom fields?

    Thanks
    Dave

    https://ww.wp.xz.cn/plugins/google-maps-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter D-Johnson

    (@d-johnson)

    There is already a topic about this problem. I will try the solution stated in this post:
    http://ww.wp.xz.cn/support/topic/specify-location-via-custom-field?replies=8

    Plugin Author WebFactory

    (@webfactory)

    Hi,
    I know it’s been 11 months but …. that feature is still not available 🙁 You can hack the code … use get_post_custom_values() and just be sure that you get the right post ID. There’s not much else to it.

    Thread Starter D-Johnson

    (@d-johnson)

    Ok my first try was to edit the desired data direct into the code.
    I tried to edit the gm-widget.php just like it was stated in in the post, but now the lightbox window doesn’t show any content.
    The small map in my sidebar ist fine.

    I don’t understand how the informations are transported to the lightbox map.

    Here is the part of my code:
    http://pastebin.com/SrY8tLXt

    Plugin Author WebFactory

    (@webfactory)

    The self::$widgets[] line pushes params to the lightbox. Check if all the vars your modifying actually have new and proper values.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using Custom Fields and dynamic Maps per Post’ is closed to new replies.