Support

Home Forums Event Espresso Premium Frontend attendee list sorting

Frontend attendee list sorting

Posted: August 10, 2017 at 12:24 pm

Viewing 5 reply threads


coemanscom

August 10, 2017 at 12:24 pm

We show the list of attendees of an event via the shortcode. Now the attendees are sorted by the last name.

Is it possible to change the order of the attendees?

We added a custom question “Company” and would like to sort the attendees alphabetically by the company name.

We use latest versions of EE4 and WP.

Printscreen of attendee list


Josh

  • Support Staff

August 10, 2017 at 1:57 pm

Hi there,

Yes there is a filter hook that allows for changing how those are ordered by:
FHEE__EES_Espresso_Event_Attendees__process_shortcode__order_by

If you need further help with an example of how to use the filter hook, it will help if you can post a pastebin or a gist with the code you’re using to add the Company name to the shortcode output.


coemanscom

August 10, 2017 at 2:09 pm

Thanks, Josh!

I customized content-espresso_event_attendees.php

Pastebin: https://pastebin.com/U3RFVw5V

Regards, Wim


Josh

  • Support Staff

August 10, 2017 at 9:55 pm

OK you can delete your content-espresso_event_attendees.php file and instead upload a loop-espresso_event_attendees.php file to your WordPress child theme. Your customized loop-espresso_event_attendees.php file can be copied from this gist:

https://gist.github.com/joshfeck/9f1e4329bb6962f1a8365059587b7f5a


coemanscom

August 10, 2017 at 11:41 pm

Awesome, Josh!

Works like a charme, thanks for the great support!


Josh

  • Support Staff

August 11, 2017 at 12:42 pm

Cool. Glad to hear you got things running there. If you have a moment would you like to leave a review for Event Espresso on WordPress.org?

https://wordpress.org/support/plugin/event-espresso-decaf/reviews/

Viewing 5 reply threads

The support post ‘Frontend attendee list sorting’ 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