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.
-
AuthorPosts
-
February 8, 2018 at 11:56 am #1448134
Marlon
ParticipantA 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?
February 12, 2018 at 2:34 am #1450430Andras
KeymasterHi 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,
AndrasFebruary 12, 2018 at 2:56 am #1450443Andras
KeymasterI 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,
AndrasMarch 13, 2018 at 11:42 am #1478020Marlon
ParticipantHi 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!
March 14, 2018 at 2:13 am #1478649Andras
KeymasterHi 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,
AndrasMarch 30, 2018 at 4:43 am #1492585Jaime Marchwinski
KeymasterHi 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,
JaimeApril 21, 2018 at 9:35 am #1512880Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Organizer order in events’ is closed to new replies.
