Title: Insert with code?
Last modified: August 24, 2016

---

# Insert with code?

 *  Resolved [grazicalazans](https://wordpress.org/support/users/grazicalazans/)
 * (@grazicalazans)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/insert-with-code/)
 * Hi again!
 * I tried insert the google maps easy in the code of my page, but I don’t know 
   if I made was correct:
 * <?php echo do_shortcode(“[google_map_easy id=”.$id.”]”); ?>
 * Where $id is my post id and is the same of my map id… But in the page, nothing
   showed.
 * Can you help me?
 * Thank you a lot!
 * [https://wordpress.org/plugins/google-maps-easy/](https://wordpress.org/plugins/google-maps-easy/)

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

 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/insert-with-code/#post-6002438)
 * Hello.
    As I see – ID for your map in shortcode – is variable, $id, as you said–
   this is your post ID, and this is incorrect. This should be ID of required map,
   you can see it in your map list for example – ID column.
 *  Thread Starter [grazicalazans](https://wordpress.org/support/users/grazicalazans/)
 * (@grazicalazans)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/insert-with-code/#post-6002489)
 * Hi,
 * Yes, I need my ID map is dynamic, taking the id of the post…
 * I changed my map ID in the database to be the same as the post ID and yet it 
   does not show anything…
 * The problem isn’t with the IDs, maybe it’s in my logic?
 * Thanks!
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/insert-with-code/#post-6002584)
 * Hello.
    I see. So, best way to resolve this issue – is to add new field to your
   posts, where you will add associated Map ID for your post.
 *  Thread Starter [grazicalazans](https://wordpress.org/support/users/grazicalazans/)
 * (@grazicalazans)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-with-code/#post-6002641)
 * Hi,
 * I associated my post with de MAP ID, but in the page, the MAP isn’t loaded. The
   shortcode is created and the area of the map is loaded, but nothing showed.
 * The link is it:
    [http://www.vemprorio.com.br/novo/imoveis/vem-pro-rio-c-318-1qt/](http://www.vemprorio.com.br/novo/imoveis/vem-pro-rio-c-318-1qt/)
 * Sorry, I don’t know where I’m wrong :/
 *  Thread Starter [grazicalazans](https://wordpress.org/support/users/grazicalazans/)
 * (@grazicalazans)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-with-code/#post-6002644)
 * Well, now the map is loading…
 * Thank you again.
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-with-code/#post-6002674)
 * No problems. Hope you will really like our solutions!

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

The topic ‘Insert with code?’ is closed to new replies.

 * ![](https://ps.w.org/google-maps-easy/assets/icon-256x256.png?rev=1086633)
 * [Easy Google Maps](https://wordpress.org/plugins/google-maps-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-easy/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/insert-with-code/#post-6002674)
 * Status: resolved