Support

Home Forums Event Espresso Premium Print attendee details for a particular event

Print attendee details for a particular event

Posted: June 6, 2017 at 3:20 am

Viewing 3 reply threads


greyowl

June 6, 2017 at 3:20 am

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?


Tony

  • Support Staff

June 6, 2017 at 5:03 am

Hi there

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.

We have an example of how you can do that here:

https://eventespresso.com/topic/ee4-modify-list-attendees-shortcode-to-show-additional-attendee-info/#post-184239


greyowl

June 6, 2017 at 6:17 am

Thanks. I’ve managed to include the ‘address’ info. But how do I know what codes to use for zip code, phone, email?


Tony

  • Support Staff

June 6, 2017 at 6:33 am

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.

Event Espresso