Support

Home Forums Event Espresso Premium Not updating event staff ordering

Not updating event staff ordering

Posted: December 12, 2016 at 7:55 am

Viewing 7 reply threads


rhj4

December 12, 2016 at 7:55 am

When I add event staff to the detailed event description, each staff person can have an order that controls how they show up on the detailed event list. This works OK, but the next time I edit that event, the sort order values have all been set back to 0.


Josh

  • Support Staff

December 12, 2016 at 12:35 pm

Hi Bob,

May I ask about how many of the staff are assigned to the event?


rhj4

December 13, 2016 at 9:22 am

Typically two but that will grow over time.


Tony

  • Support Staff

December 13, 2016 at 10:48 am

I recreated this locally and have created a ticket for our developers to investigate this further.

The value does save within the DB however it is not loading within the event editor so currently must be added again whenever you edit the event to keep the ordering.


rhj4

December 13, 2016 at 1:35 pm

That is my take on the problem too, and having written lots of code like this in the past, I can visualize the code problem in my mind. Pretty simple to fix once they know what the problem is.


Josh

  • Support Staff

December 15, 2016 at 9:25 am

Hi Bob,

We looked into this and it turns out, this isn’t a bug, and I can explain how the staff ordering works.

So for your events, you have two People types: 1) Leader and 2) Support staff. The ordering feature only orders the items within a type. It does not order the items across the different types.

When you set 1, 2, 3 and so on for items one people type, the order will not reset to zero within that type. When you set only one item in one type, then only one item for another type, those are each “first” for their respective type.

Does that explanation make sense? Along with that, are you looking for a way to control the ordering of each section? i.e. place the Support Staff section before the Leader section?


rhj4

December 17, 2016 at 10:49 am

Josh,

Thanks for the explanation. As I get started, I have only one facilitator and one staff person. As I move forward, I expect to have two leaders / facilitators so I will be able to use the feature then as intended.

And that said, Yes, I would like to put the leaders before the staff people. If these sections were draggable as on the Appearance-> Menu page, that would be cool. In the meantime, I will live with the restriction now that I understand your intent.

Bob


Josh

  • Support Staff

December 19, 2016 at 6:45 pm

Hi Bob,

You can actually make it display leaders before staff by making a small edit to the content-espresso_events-people.php template.

It’s recommended to copy the template from the people add-on (located in the /public/templates folder) into your active WordPress theme. Then right after the line that has:
$people = EEH_People_View::get_people_for_event();
you add this:
$people = array_reverse( $people );

Viewing 7 reply threads

The support post ‘Not updating event staff ordering’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso