Title: Programmatically adding markers to a map from custom field
Last modified: September 1, 2024

---

# Programmatically adding markers to a map from custom field

 *  Resolved [kemioyesiku](https://wordpress.org/support/users/kemioyesiku/)
 * (@kemioyesiku)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/programmatically-adding-markers-to-a-map-from-custom-field/)
 * Can I add markers programmatically using custom fields (where location data is
   kept) we already have in our posts (custom post types)?
 * For example, is there a function or shortcode we can add to a page that adds 
   the map and enables us to add a specific list of markers (based on lat/long or
   place ID, etc. saved in custom fields) to the map?

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

 *  Plugin Support [Ashok Singh](https://wordpress.org/support/users/flippercode0505/)
 * (@flippercode0505)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/programmatically-adding-markers-to-a-map-from-custom-field/#post-17988707)
 * Hello,
   1) To display records on maps from a custom post type can be achieved 
   in PRO version. In free version you do not have support to custom post type.2)
   In PRO version , these we have the system to show the markers by using latitude
   and longitude which are already stored in form of custom fields in that custom
   post type.3) If you have pro version – you can show cpt plus use already stored
   lat and lng to show the places. We have our in built marker icon system also.
   But if you want us to show the already stored marker icon images on the map, 
   then we will need to do some custom code for that but that is achievable. If 
   you are using free version, then also we can do custom code and implement the
   features you wanted that I mentioned in point 1 to 3.If you have pro version :
   [https://codecanyon.net/item/advanced-google-maps-plugin-for-wordpress/5211638](https://codecanyon.net/item/advanced-google-maps-plugin-for-wordpress/5211638)
   then we need to only implement point 3 via customsiation ( using already saved
   custom markers ).Thanks
 *  Plugin Support [Ashok Singh](https://wordpress.org/support/users/flippercode0505/)
 * (@flippercode0505)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/programmatically-adding-markers-to-a-map-from-custom-field/#post-18003037)
 * Hello,
 * If you have any further questions or concerns, please feel free to reopen the
   ticket.
 * Best Regards

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

The topic ‘Programmatically adding markers to a map from custom field’ is closed
to new replies.

 * ![](https://ps.w.org/wp-google-map-plugin/assets/icon-256x256.gif?rev=3111000)
 * [WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters](https://wordpress.org/plugins/wp-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-map-plugin/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ashok Singh](https://wordpress.org/support/users/flippercode0505/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/programmatically-adding-markers-to-a-map-from-custom-field/#post-18003037)
 * Status: resolved