Title: Create maps per post with shortcode?
Last modified: November 2, 2018

---

# Create maps per post with shortcode?

 *  Resolved [whatsthatbugcom](https://wordpress.org/support/users/whatsthatbugcom/)
 * (@whatsthatbugcom)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/create-maps-per-post-with-shortcode/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcreate-maps-per-post-with-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/create-maps-per-post-with-shortcode/#post-10847152)
 * 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 [support@webfactoryltd.com](https://wordpress.org/support/topic/create-maps-per-post-with-shortcode/support@webfactoryltd.com?output_format=md)
 *  Thread Starter [whatsthatbugcom](https://wordpress.org/support/users/whatsthatbugcom/)
 * (@whatsthatbugcom)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/create-maps-per-post-with-shortcode/#post-10847538)
 * 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](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/create-maps-per-post-with-shortcode/#post-10848758)
 * 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.

 * ![](https://ps.w.org/google-maps-widget/assets/icon.svg?rev=2139345)
 * [Maps Widget for Google Maps](https://wordpress.org/plugins/google-maps-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-widget/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WebFactory](https://wordpress.org/support/users/webfactory/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/create-maps-per-post-with-shortcode/#post-10848758)
 * Status: resolved