WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Search Form - Order of Categories (11 posts)

  1. RetroTorque
    Member
    Posted 1 year ago #

    Hello Marcus,

    I've done some reading and believe that the drop-down lists on the search form are all in alphabetised order.

    All of mine are, except for the 'categories'. Is there a way of re-setting this, or of 're-ordering' them manually?

    My site:

    http://retrotorque.com/social-network/

    Many thanks,

    Mathew

    http://wordpress.org/extend/plugins/events-manager/

  2. RetroTorque
    Member
    Posted 1 year ago #

    ... Sorry, just to clarify - I wish to have the 'categories drop-down' in alphabetical order as well.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    true, that's not very pretty... will look into that (won't be in the next update this week, but should be in the next one)

  4. RetroTorque
    Member
    Posted 1 year ago #

    Thanks, that's great.

  5. agelonwl
    Member
    Posted 1 year ago #

    you can try to modify template file at wp-content/plugins/events-manager/templates/templates/events-search.php then add some sorting e.g. http://codex.wordpress.org/Function_Reference/wp_dropdown_categories at wp_dropdown_categories

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

  6. Beee
    Member
    Posted 1 year ago #

    ran into the same.
    it's easily fixed by using templates and then in events-search.php on line 50 add the following code

    'orderby' => 'name', 'order' => 'ASC',

    after

    'hierarchical' => true,

    that should do it.

  7. RetroTorque
    Member
    Posted 1 year ago #

    Thanks agelonwl / Beee.

    I inserted your piece of code, Beee - and it did the trick. Great! Much neater.

    Thanks.

  8. owcv
    Member
    Posted 1 year ago #

    When will this be in an update? I've just upgraded to EM 5.3.3 but the order of the categories in the selector still isn't alphabetical. Btw. this bug occurs also in the backend.

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    will fix the ordering, but the hierarchical bit should be implemented already...

    e.g. http://demo.wp-events-plugin.com/events/ (just assigned some child categories now, worked)

  10. cowgirly
    Member
    Posted 11 months ago #

    FYI my Categories dropdown list still isn't in alphabetical order. Hope this can be fixed in a future release? Thanks.

  11. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 11 months ago #

    This was fixed (see the demo), maybe you're using oudated templates you overrode earlier?

    If not, pls open a new thread and we can look into it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic