The [ESPRESSO_EVENT_ATTENDEES] only shows a list of attendee names, if one attendee purchase multiple tickets, there is no indication of this on the list such as “Attendee Name (3)”.
Is there any way to add this? Not really useful if multiple tickets aren’t displayed.
This is possible and it involves a working knowledge of PHP programming. The main template in Event Espresso that generate the attendee list is: content-espresso_event_attendees.php
This template can be copied over to your WordPress theme and customized.
Then, inside the custom template, you can set a variable that has the number of tickets purchased for that attendee like this:
Then you echo out the $group_size variable where you want that number to be displayed. e.g. <li><?php echo $gravatar . ' ' . $contact->full_name() . ' (' . $group_size . ')'; ?></li>
Worked Great! thanks! it now lists the primary and below lists the primary and the number of tickets in the group.
<br>
i.e <br>
First Name<br>
First Name (3)<br>
You don’t need to have both the Primary Registrant and then the Primary Registrant (X) in the list, you could have it as a single line.
You’ve added the line of code Josh gave as an example of the output below the original, which is why you have both. You can remove the original line and just uses Josh’s code if you only want the details on one line.
The support post ‘Event Attendees (2)’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.