Organizer order in events

Home Forums Calendar Products Events Calendar PRO Organizer order in events

  • This topic has 0 replies, 3 voices, and was last updated 8 years ago by Marlon.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1448134
    Marlon
    Participant

    A site user would like organizers to show up in a different order when there are multiple organizers. Is there a way to change the order in which event organizers appear?

    #1450430
    Andras
    Keymaster

    Hi Marlon,

    Thanks for reaching out! Great question.

    There is no setting or drag-and-drop way of sorting the organizers. But I believe it could be done with a template override.

    You will need to create an override for this file:

    wp-content/plugins/the-events-calendar/src/views/modules/meta/organizer.php

    On line 26 a ‘foreach’ is cycling through the organizer IDs.

    In case you wish to list the organizers alphabetically, then what you could do is go through the organizer IDs before that and pull in the organizer names, put this thing in an associative array.

    Then sort the array alphabetically based on the name.

    Feed the IDs of this array to the next foreach.

    Hope this helps you get started. Let me know.

    Cheers,
    Andras

     

    #1450443
    Andras
    Keymaster

    I did some digging on this. It looks like we have a bug with the drag-drop sorting of organizers.

    To give you a workaround until this is fixed I have created a template override for you so you can list them alphabetically. Instructions are at the top of the file, but you basically just need to copy the file under:

    [your-theme]/tribe-events/modules/meta/organizer.php

    https://gist.github.com/andrasguseo/f9f408298cd1d725b7a5cdd22bcbb801

    Check and let me know if that helps.

    Cheers,
    Andras

    #1478020
    Marlon
    Participant

    Hi András,

    That code worked great, and it somewhat resolved my issue — the list I wanted to change is resolved by listing organizers alphabetically, but I don’t think this is a long-term solution for our needs. Is the ability to permanently change the order of the organizers by dragging and dropping an upcoming change to The Events Calendar?

    Thanks!

    #1478649
    Andras
    Keymaster

    Hi Marlon,

    Happy to hear that gave you at least a temporary fix.

    Perfect timing to ask that question. 🙂

    A fix has been developed for the drag-and-drop ordering bug. It is currently waiting to be thoroughly tested to make sure we don’t introduce any new bugs.

    If all goes according to plan, then the fix will ship in the next maintenance release sometime around the end of this month. Hang in there.

    I am going to set the status of this ticket to “pending fix” and we will update it once the fix is released.

    Cheers,
    Andras

    #1492585

    Hi There!

    Just wanted to share with you that a new release of our plugins is out, including a fix for this issue 🙂

    Find out more about this release —> https://theeventscalendar.com/maintenance-release-week-25-march-2018/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Jaime

    #1512880
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Organizer order in events’ is closed to new replies.