Posted: January 20, 2014 at 8:37 pm
|
I would like to have a sortable attendee list which updates as guests sign up for our event. I also want to be able to show a short list of recent attendees on the front page sidebar.. I have looked through the forums, please let me know you have specific shortcodes I can embed.. Latest WP version, etc.. |
|
Hi, We do have a shortcode called LISTATTENDEES, which with the event_identifier parameter will list the attendees for that event. It will update dynamically (on page refresh) but it does have one limitation, it is in last name order only. It does allow limitation so could be used in a sidebar (your theme will require one line of additional code if it does not already support shortcodes in widgets. |
|
Dean, Appreciate the response.. The sortability is a big deal – we are registering alumni of a college, and people will want to sort using year of graduation or department…! Currently I am exporting to excel and using another plug in to provide a sortable list, but it is a manual process.. Any suggestions? QJ |
|
The function that produces the list is overrideable, so you can make a copy of it and modify it. What would you want it to sort by? Looking at the code, it looks like the limit in the shortcode attribute applies to the number of events that are retrieved (if you use an event category, for example), but that it retrieves all the attendees in those events. If you want to alter that behavior, it would again involve copying and modifying a function. But those easy one or two line modifications are something that we are happy to help you with here in the forums. |
|
Thank you Sidney, appreciate the update.. Please check this out http://www.nitkan.org/registration/attendee-list/?preview=true&preview_id=234&preview_nonce=d792bb2e8c I generate this by doing the following: I have set up Csv To SortTable plugin, which then generates the completely sortable list you see. This is a pain in the but, not to mention inefficient. People don’t see themselves on the list till I do the update. What I would like is to be able to use a short code with attributes as to which fields I want to display (Name, City, Year of Graduation, Degree) and let people use that to focus in on what they are interested in.. Please let me know what you think! Regards, |
|
Code: https://gist.github.com/sidharrell/8592212 |
|
Sidney, Thank you for the code – let me see if I can get a friend to help, as I am kind of ignorant on how exactly to make this work in my site.. Will get back, |
|
You’ll want to copy the file that is already on your site in plugins/event-espresso/templates/attendee_list.php over to uploads/espresso/templates. Then replace the code that is currently in there with the code from the gist. Copy sorttable.min.js from plugins/csv-to-sorttable/js to uploads/espresso and point line 47 of my code to it. I just realized I could have used the code that is there and commented out on lines 97 and 98 instead of modifying the query like I did on lines 75-78 to get the answers to your custom questions. Sorry about that. |
The support post ‘Two features – please confirm I can do this’ 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.