Title: Dynamically add markers by code
Last modified: June 3, 2017

---

# Dynamically add markers by code

 *  Resolved [r91andersson](https://wordpress.org/support/users/r91andersson/)
 * (@r91andersson)
 * [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/)
 * Hi,
 * Would it be possible to add markers dynamically by code?
 * Let’s say I would like to add, depending on other parameters, three markers/week,
   would this be possible to do by code rather by do it manual for hand?
 * Regards Robin

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

 *  [Jarryd Long](https://wordpress.org/support/users/jarryd-long/)
 * (@jarryd-long)
 * [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/#post-9199523)
 * Hi Robin
 * Thank you for getting in touch with us.
 * You’d be able to create markers programatically by inserting them into the `wpgmza`
   table in your database.
 * Would you be comfortable in building the SQL query to do this, or would you like
   an example sent through?
 *  Thread Starter [r91andersson](https://wordpress.org/support/users/r91andersson/)
 * (@r91andersson)
 * [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/#post-9202416)
 * Oh sweet, didnt notice that extra fields in the database. I can handle that 🙂
 * Do you have any function to call that takes as the input parameter adress name,
   and gives the output as lat/long?
 * And would it be possible if I buy the pro version to programatically create a
   new map? (My intention is to create a new map for each new user that register
   on the site, and each user will have a set of coordinates)
 *  [Jarryd Long](https://wordpress.org/support/users/jarryd-long/)
 * (@jarryd-long)
 * [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/#post-9203091)
 * Hi Robin
 * I can send you some JavaScript code to Geocode the address – would this suffice?
 * We’d be able to assist you in programatically creating a map when a user registers
   on the site, yes 🙂
 *  Thread Starter [r91andersson](https://wordpress.org/support/users/r91andersson/)
 * (@r91andersson)
 * [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/#post-9203201)
 * Perfect!
 * I’ll buy the pro version tomorrow then!
 * You can mail me at [r91.andersson@gmail.com](https://wordpress.org/support/topic/dynamically-add-markers-by-code/r91.andersson@gmail.com?output_format=md)
 * Regards Robin
 *  [Jarryd Long](https://wordpress.org/support/users/jarryd-long/)
 * (@jarryd-long)
 * [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/#post-9206891)
 * Hi Robin
 * That will be great! Thank you so much!
 * I’ve mailed you on the provided email address, however I’d recommend editing 
   the post and removing it to prevent receiving any spam in the future 🙂

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

The topic ‘Dynamically add markers by code’ is closed to new replies.

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

 * 5 replies
 * 2 participants
 * Last reply from: [Jarryd Long](https://wordpress.org/support/users/jarryd-long/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/dynamically-add-markers-by-code/#post-9206891)
 * Status: resolved