WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Custom search for zip code + require zip code (6 posts)

  1. chrishylton2012
    Member
    Posted 1 year ago #

    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/

  2. agelonwl
    Member
    Posted 1 year ago #

    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/

  3. chrishylton2012
    Member
    Posted 1 year ago #

    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.

  4. agelonwl
    Member
    Posted 1 year ago #

    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.

  5. ehong33234
    Member
    Posted 1 year ago #

    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.

  6. agelonwl
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic