Title: [Plugin: Events Manager] Custom search for zip code   require zip code
Last modified: August 20, 2016

---

# [Plugin: Events Manager] Custom search for zip code require zip code

 *  Resolved [chrishylton2012](https://wordpress.org/support/users/chrishylton2012/)
 * (@chrishylton2012)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/)
 * Hello, I would like to make it so that the postcode/zipcode entry is required
   in locations. Also, I would like to add a “search by zip code” option on the 
   main events page. How would I go about doing this?
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/#post-2831942)
 * hi,
 * you can add the search by zipcode by modifying template file at templates/events-
   search.php and for making zipcode required templates/forms/event/location.php
 * [http://wp-events-plugin.com/documentation/using-template-files/](http://wp-events-plugin.com/documentation/using-template-files/)
 *  Thread Starter [chrishylton2012](https://wordpress.org/support/users/chrishylton2012/)
 * (@chrishylton2012)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/#post-2832078)
 * For making the zip code required, I added the “$required” tag to the end of the
   search field but the user can still publish an event without a zip code.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/#post-2832088)
 * hi,
 * you can still do this by modifying classes/em-location.php and adding `,"location_postcode"
   => __('Postal code', 'dbem')` at around line 106 however this not update proof.
 *  [ehong33234](https://wordpress.org/support/users/ehong33234/)
 * (@ehong33234)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/#post-2832270)
 * Has there been any updates to this? I too am looking for a way to search by zip
   code and landing page will be sorted base on zip code range. Preferably, I would
   like this in a widget form.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/#post-2832271)
 * hi [@ehong33234](https://wordpress.org/support/users/ehong33234/),
 * maybe this can help you out – [http://wordpress.org/support/topic/plugin-events-manager-add-simple-placeholder-for-zip-code-distance?replies=10](http://wordpress.org/support/topic/plugin-events-manager-add-simple-placeholder-for-zip-code-distance?replies=10)

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

The topic ‘[Plugin: Events Manager] Custom search for zip code require zip code’
is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [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

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [postcode](https://wordpress.org/support/topic-tag/postcode/)
 * [zip](https://wordpress.org/support/topic-tag/zip/)
 * [zipcode](https://wordpress.org/support/topic-tag/zipcode/)

 * 5 replies
 * 3 participants
 * Last reply from: [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-events-manager-custom-search-for-zip-code-require-zip-code/#post-2832271)
 * Status: resolved