Changing the order of event categories on front end form

Home Forums Calendar Products Community Events Changing the order of event categories on front end form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #954841
    stephenschildbach
    Participant

    Event categories by default display on the front end form in alphabetical order (just as WordPress post categories do). I’d like to be able to sort them (customize their display order). The topic of changing the order of event categories on the community events front end form was brought up in this forum thread but not answered: https://theeventscalendar.com/support/forums/topic/changing-the-order-of-event-categories/

    Could a Modern Tribe admin take a look at this question again and possibly come up with a function that would allow customizing the order? Thank you.

    #955357
    Josh
    Participant

    Hey!

    Thanks for reaching out to us!

    Sure thing! Check out this snippet https://gist.github.com/BeardedGinger/4d5174081842fe78cebb. You’ll need to add this snippet to your theme’s functions.php file and then modify the “orderby” value within each of the $args arrays. You can find the available options for re-ordering here https://codex.wordpress.org/Function_Reference/get_terms#Parameters.

    Let me know if this helps.

    Thanks!

    #955497
    stephenschildbach
    Participant

    This reply is private.

    #955920
    Josh
    Participant

    Hey,

    Awesome! Happy to help.

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Changing the order of event categories on front end form’ is closed to new replies.