Support

Home Forums Event Espresso Premium EE4 – Modify list Attendees shortcode to show additional attendee info?

EE4 – Modify list Attendees shortcode to show additional attendee info?

Posted: December 9, 2015 at 5:46 pm

Viewing 3 reply threads


Pedro Ordenes

December 9, 2015 at 5:46 pm

Hello! I use the EE4 Attendee list shortcode to generate a front-end list of event participants. Is there a way to modify either the shortcode PHP or the shortcode itself to include other information in list? For example, right now next to a bullet point, it just has first and last name, but I’d like it to say:

John Doe – New York, NY, USA

or

John Doe – Paris, France

Any way to do this? Thanks in advance!


Tony

  • Support Staff

December 10, 2015 at 7:39 am

Hi Lauren,

This will require some custom coding and depends on exactly what your trying to do.

The New York, NY and USA answer, are they from custom questions or the address fields within the EE system address questions?


Pedro Ordenes

December 10, 2015 at 11:30 am

The answers are from the system address questions. Though I’d be curious to see how to and possibly later implement custom questions if possible – if not, no worries! Thanks!


Josh

  • Support Staff

December 11, 2015 at 2:48 pm

Hi Lauren,

I can outline how to set up the template file to make customizations and share some code examples for adding more information to the list of attendees.

First, you copy the content-espresso_event_attendees.php template file from the Event Espresso plugin’s /public folder to your WordPress child theme. There you can add the code to display more information. Here’s a link to some code examples that show how to add the City, State, and Country to the list:

https://gist.github.com/joshfeck/06f1ce1a3cc416ac3cf8

Viewing 3 reply threads

The support post ‘EE4 – Modify list Attendees shortcode to show additional attendee info?’ 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