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 2 replies - 16 through 17 (of 17 total)

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

 *  [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/page/2/#post-4046738)
 * No, locations maps don’t work like that. To do what you’re describing you’d meed
   to create some custom code.
 * One way to do it would be to load a location map as normal through EM and then
   center it by hooking into the onload function of the map.
 *  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/page/2/#post-4046749)
 * Currently searching by postcode isn’t possible.
 * You’d need to create something that takes the post code and gets coordinates 
   for it. for example, GeoNames.org has a service for this, but it’s a service 
   you pay for. Same for Google I think.
 * At that point, you could run it through EM to generate a map of nearby events,
   e.g.:
 * [locations_map near=”0,0″ near_unit=”km” near_distance=”25″]

Viewing 2 replies - 16 through 17 (of 17 total)

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

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