WordPress.org

Support

Support » Plugins and Hacks » Events Made Easy » [Resolved] Dropdown for locations

[Resolved] Dropdown for locations

  • I am using dropdown filters with the EME plugin on my website. Today I have updated both WP and the EME plugin to the latest versions. The default option on 3 of my 4 filters correctly says “Select a Category”, “Select a location” and “Select Month” however, the other option which should say “Select County” has the first County in my list as the default option. At the bottom of the list of Counties, there is a blank white space which, when selected, includes all counties in the list.

    How do I change it to the default required: “Select County” at the top of the list?

    Whats On

    Thank you

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    @liedekef

    It’s “Select a town”, not “Select County”. But still: it should be there.
    Could you check if the file eme_filters.php contains the text “Select a town” ? If not, somehow your update failed (maybe file permissions).

    Yes, “Select a town” is included in the file

    Here is a snippet from eme_filters.php

    asort($town_list);
    if ($multiple) {
    $town_list = array(0=>__(‘Select one or more towns’,’eme’))+$town_list;
    $replacement = eme_ui_multiselect($selected_town,$town_post_name,$town_list,$multisize);
    } else {
    $town_list[0] = array(0=>__(‘Select a town’,’eme’))+$town_list;
    $replacement = eme_ui_select($selected_town,$town_post_name,$town_list);
    }

    We have altered this to:

    asort($town_list);
    if ($multiple) {
       $town_list = array(0=>__(‘Select one or more towns’,’eme’))+$town_list;
       $replacement = eme_ui_multiselect($selected_town,$town_post_name,$town_list,$multisize);
    } else {
       $town_list = array(0=>__(‘Select a town’,’eme’))+$town_list;
       $replacement = eme_ui_select($selected_town,$town_post_name,$town_list);
    }

    This is now working correctly so is this a typo or a bug?

    Plugin Author Franky

    @liedekef

    It took me a while to see the difference, but I overlooked it since it is already fixed in the dev version:

    * Bugfix: default selected town was always the first town when using [events_filterform]

    It will be in the next version, to be released asap.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Dropdown for locations’ is closed to new replies.
Skip to toolbar