Posted: June 8, 2023 at 1:10 pm
|
I have events that have different “sessions” within them. When using the attendee list shortcode ([ESPRESSO_EVENT_ATTENDEES]), I only get the list for everyone registered for ANY session. I know I can add the datetime to show the attendees for different sessions, but that creates additional steps for each event. Over time, it’s a lot of extra work. Is there a way to show attendees for individual sessions/tickets in a way that can just stay there as a constant? I’m trying to avoid creating a custom template if I can, but I will if that’s the only way. I just am not sure about the code I’d need to pull the datetime IDs in and display them. |
Hi There, I’m not sure we have enough information. When you say “sessions” how are you structuring or organizing how attendees register for those sessions? Are you using ticket options, or answers to custom questions or something else?
This shortcode will show a list of attendees for each ticket, but each ticket in Event Espresso has a different ID number: [ESPRESSO_EVENT_ATTENDEES ticket_id=123] |
|
|
They’re set up as 4 different times in the event and a ticket assigned to each time. |
Hello, We have list of Event Attendees Shortcode Here. You can use the filter provided in that documentation. thanks |
|
|
I see some examples of customized templates and how to display a custom question, but I don’t see anything that looks like it applies to what I’m hoping to accomplish. Can you be a bit more specific about how to use this to output a list of attendees with the tickets they selected? |
So you’re looking for a method/snippet to output the attendee list for each specific datetime/ticket without needing to specific the datetime/ticket ID? Somehting like: https://gist.github.com/Pebblo/2916cff85d64b4b03c6f4c69626a39d6 Which adds the output to the end of each datetime. Or this one: https://gist.github.com/Pebblo/edf43d0d7037a12e8260104a6abd454c Which adds the output to the end of the ticket description? |
|
|
Sorry. I put my reply in the wrong thread… just clicked a link in the e-mail and ended up lost. 🙂 Awesome. Thanks. The first one is perfect for what I need. It’s just doing this thing where it’s showing an HTML comment: <!– after the attendee name. Any ideas on why? |
Hmm, its a comment being escaped.
Line 28 will have Remove that, does it fix it for you? |
|
|
Yes it does. Will that be overwritten on update? Do I need to put that template in my child theme? |
Yeah it will, I was just confirming that was indeed the issue for you. Yes, place a copy of that template within your child theme. |
|
|
Got it. Thanks! |
You’re most welcome 🙂 |
|
The support post ‘Attendee list for individual "sessions"’ 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.