Title: Maps Shortcode and post code
Last modified: August 21, 2016

---

# Maps Shortcode and post code

 *  [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/)
 * How can I use the locations map to search a postcode value. Your documentation
   said that I can use the normal search attributes, but when I use a postcode it
   just shows all locations (map is zoomed out to show all of England).
 * I want the map to show locations near a postcode inputted by a user. Is this 
   actually possible?
 * I am using the 5.4 plugin version by the way because my maps wouldnt load with
   5.5.
 * Also.
    Is it pussible to use “Search” search attribute with the map?
 * [http://wordpress.org/plugins/events-manager/](http://wordpress.org/plugins/events-manager/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/maps-shortcode-and-post-code/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/maps-shortcode-and-post-code/page/2/?output_format=md)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046461)
 * postcode, this works on EM 5.5; can I know what happens on your map with 5.5?
 * search, can I know what do you mean by this?
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046468)
 * Hi,
 * In your documents on your website you have this in the shortcode section:
 * > [locations_map]
   >  Inserts a map of multiple locations. Accepts any of the event,
   > location and general search attributes, as well as these two:
 * On the “search attribute” page one of the attributes is the following
 * > **search**
   >  Do a search for this string within event name, details and location
   > address.
 * My goal is to have one input box where someone can type in either a postcode,
   address or town. That value will be inputted into the shortcode `[locations_map
   search="$Search_value"]`.
 * In regards to the 5.5 map issue. It is on my developing server.
    I believe that
   I am having the same issue that many others are having with 5.5. The maps do 
   not load. Im not sure if you have a fix for it yet though. Unfortunately there
   are multiple threads with map issues, will you be able to link me to the thread
   that has the correct workaround/solution?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046532)
 * [locations_map search=”$Search_value”]
 * sorry but this won’t work; you might need to create your own search attribute
   to handle this – [http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/](http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/)
 * with regards to map issue with 5.5; we are currently working on the same issue
   however can you give us more details what are the issues you are experiencing?
 * thanks
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046618)
 * hi on all my browsers all issuess point to the following line . `google.maps.
   event.addListenerOnce(map, 'idle', function(){ if( !em_maps_loaded ) em_maps();});`
 * in the events-manager.js file
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046651)
 * thanks, we will going to look into this. btw, can you share sample link to your
   site for us to see?
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046653)
 * Hi, Angelo.
 * I upgraded to 5.5 only on my development server. The live server [http://www.thevibesign.com](http://www.thevibesign.com)
   is still running the old version of events manager(unfortunatley I cant turn 
   maintenance mode off because Im at work so only the splash page is available).
   Maybe you may be able to help me find google api instances that are running that
   may conflict.
 * Thanks,
 *  [Philip John](https://wordpress.org/support/users/philipjohn/)
 * (@philipjohn)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046656)
 * As the issue is with the new version, we won’t be able to gather any info from
   the live site while it’s still on the earlier version.
 * This is a known issue that’s being worked on however.
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046659)
 * Hi both, thanks for your input.
    Since you are working on the issue, do you recommend
   that I wait for an update before I upgrade events manager on my live server?
 * Or Will you have time to be able to provide me with a quicker workaround if I
   upgrade the plugin on my live site so you can check it.
 * If the latter, I would like to know if the upgrade totally reversible? (As in
   i can just replace the Events manager 5.5 folder in the wp-plugins with the old-
   version if my site messes up).
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046698)
 * I advise that you keep your working EM version and wait for the update while 
   we are working on the issue.
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046728)
 * Hi, Your latest update fixed the maps. They now load. However I still cannot 
   get the maps to pinpoint a user specified location.
 * [locations_map width=”1250″ height=”500″ POSTCODE=”sw17 7tr” ].
 * I would like the map to center on the postcode specified in the map shortcode
   once it loads. How can I do this?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046729)
 * The postcode attribute is case-sensitive, so try:
 * `[locations_map width="1250" height="500" postcode="SW17 7TR"]`
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046730)
 * Hi, it doesn’t work.
 * I want the map to center on that custom postcode so that users can see the location
   posts around it.
 * I thought it was because I do not have a location post with that postcode.
 * What doesn’t make sense to me is that I tried it with the postcodes from my location
   posts and it still did not center.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046733)
 * To be honest, this has me stumped. I’ll ask Marcus to take a look at this thread
   on Monday.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046736)
 * Does a location exist in that postcode? It is also space sensitive so maybe you
   need to compare with a location to see.
 * Otherwise, you can try the near attribute (undocumented, new in 5.5), using google
   Lat/Lng coordinates e.g. near=”0,0″
 *  Thread Starter [adzay](https://wordpress.org/support/users/adzay/)
 * (@adzay)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/#post-4046737)
 * Hi Marcus,
    Nope a location doesn’t exist in that postcode. I was hoping to use
   that postcode search attribute as follows:
 * 1. User visits my site, inputs their postcode
    2. the postcode is then put in
   the location-map Short code (through PHP of course) 3. then the map centers on
   their postcode, showing the locations ( that i have posted on the site) around
   it.
 * is that how the location maps work?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/maps-shortcode-and-post-code/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/maps-shortcode-and-post-code/page/2/?output_format=md)

The topic ‘Maps Shortcode and post code’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [events](https://wordpress.org/support/topic-tag/events/)
 * [manager](https://wordpress.org/support/topic-tag/manager/)
 * [postcode](https://wordpress.org/support/topic-tag/postcode/)

 * 17 replies
 * 5 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/maps-shortcode-and-post-code/page/2/#post-4046749)
 * Status: not resolved