WordPress.org

Ready to get started?Download WordPress

Forums

Events Made Easy
[resolved] Bug fix for Town pulldown in [events_filterform] shortcode (3 posts)

  1. Brian Shim
    Member
    Posted 1 year ago #

    First of all, great plugin!

    If you enable filtering by Town in the [events_filterform] shortcode, the default selected town is always the first town, instead of what was intended in the code, "Select a town". "Select a town" is not shown anywhere, but there is a blank field at the bottom of the selection list.

    That makes it inconvenient for people search by other fields, because they always have to select the blank field if they don't want to filter the Town.

    There is a bug that causes this problem which is easily fixed. In line 156 of eme_filters.php, replace this:
    $town_list[0] = array(0=>__('Select a town','eme'))+$town_list;

    with this:
    $town_list = array(0=>__('Select a town','eme'))+$town_list;

    That matches how other selection boxes work (like Select by Category).

    Thanks,
    Brian

    http://wordpress.org/extend/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the bugfix! Corrected in trunk.

  3. Brian Shim
    Member
    Posted 1 year ago #

    Franky, thanks for the fast correction and for this fantastic plugin!

    - Brian

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic