• Resolved whatsthatbugcom

    (@whatsthatbugcom)


    Hi. The plugin I’m currently using for maps is using the Dynamic API. Can I do something like this with your plugin to generate maps per post automatically?

    I am pulling the location from a Custom Field in the post. I’d hate to have to stop showing the maps, as we get a lot of positive feedback on them. But all of a sudden, I am being billed $500+ per month!

    function location(){ if( is_single() ) { $post_id = get_the_ID(); $location = get_post_meta($post_id, ‘Location’, true); if (!empty($location)) { echo “Location: $location”; echo do_shortcode(“[res_map address=\”$location\” description=\”$location\” icon=\”blue\” pancontrol=\”no\” typecontrol=\”no\” scalecontrol=\”no\” key=\”\” streetcontrol=\”no\” zoom=\”5\” zoomcontrol=\”no\” width=\”100%\” height=\”250px\” maptype=\”terrain\” popup=\”no\” style\”1\” publisherid=\”\” adbg=\”#ffffff\”]”); }

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WebFactory

    (@webfactory)

    Hi,

    Before anything else – I doubt GMW (or any plugin) will be able to bring your monthly bill down ?? The number of requests you have towards the Google maps API does not change.

    Our PRO version has shortcode support and you can use do_shortcode as you noted above. It won’t be a problem. You can use it to generate static image maps too, which might bring down API usage a bit.

    If you need further assistance please contact our support on [email protected]

    Thread Starter whatsthatbugcom

    (@whatsthatbugcom)

    It would not change the number of requests – it would shift the majority of them from being dynamic to being static, which would save me a ton of money. And would allow me to continue to show maps. If buying the pro version will allow me to generate static maps for each entry, and when a user is interested enough to click on the static map they get a dynamic map, I will very gladly buy the pro version. Would it work that way?

    Plugin Author WebFactory

    (@webfactory)

    Hi,
    Unfortunately, even with PRO you can’t dynamically input the address via a shortcode. You’d need to create the widget first and then call it via a shortcode. Which is, unfortunately, not what you need ??

    I apologize for not being clear on that earlier.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create maps per post with shortcode?’ is closed to new replies.