Is there a shortcode or a quick way to display registration totals by event?
I’m aware of [ESPRESSO_EVENT_ATTENDEES] but that prints out a list of registrations, e.g. John Smith & Jane Doe – I would prefer to return the value as “2” rather than a list of names.
There isn’t a short code, but depending on where you want that total displayed, and whether you want the number to display total registrations that have an approved status (or all registrations regardless of status) there’s probably a quick way to add that via a hook. Do you want that information to be displayed on the single event page somewhere?
In EE3 I had a standalone page that my instructors for each event could all login to(password protected page), to view the attendance level for upcoming events.
We don’t have documentation on this kind of customization.
It depends on how exactly your pulling in the events for the table, but if each section is a single event and you have the EE_Event object you can just use:
echo $event->get_number_of_tickets_sold();
If you are using the same loop you have used for the above table you should already have the event object, correct?
Viewing 5 reply threads
The support post ‘Short Code to Display Registration Totals’ 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.