I’ve seen the documentation on [ESPRESSO_EVENT_ATTENDEES] but I’d like to be able to select by Event name (rather than the id, which no one knows) and to include formatted details (e.g. address, phone no.) for each attendee. Is there an easy way to do that?
I’d like to be able to select by Event name (rather than the id, which no one knows)
The admin (which I’m assuming is yourself) would know the event id, its available within the Event list (Event Espresso -> Events).
There is no selection to be made with the above shortcode, it pulls the attendees for the event id you pass to it, unless I’m misunderstanding what you are asking for?
Changing the shortcode to use the event name rather than the ID is not a simple task, you would be better off creating your own shortcode to pull the event using the title, although I don’t really see the benefit of doing this.
and to include formatted details (e.g. address, phone no.) for each attendee.
To do that you’ll need to copy the template used by the shortcode and edit that to include the details you want.
You can use Kint Debugger or similar to wrap the object your are looking at within d(); and find all of the available methods on that object, then use whichever ones you prefer.
So if you add the above plugin to the site, then add d($contact); to the above code you can see which methods are available to pull the details you need.
Viewing 3 reply threads
The support post ‘Print attendee details for a particular event’ 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.