Support

Home Forums Event Espresso Premium EE4 List of Attendees

EE4 List of Attendees

Posted: September 2, 2014 at 12:42 pm

Viewing 14 reply threads


Ty

September 2, 2014 at 12:42 pm

First, I am happy to report that Event Espresso is working very well. It has exceeded my expectations. The EE support staff has been very responsive and helpful.

Now that we have our new website up and running more and more people are using it to register via the EE4 plugin. We have 39 events over the next six months with attendance up to 40 or so per event. We can track registrations through the dashboard but it would be very helpful able to print lists or have summary pages on the site to view registrations by event.

EE4 does not have the short codes that EE3 does. Any suggestions for how to create a page that would provide a list of attendees who have registered (sorted by event) and also provide a few fields of information for each attendee such as payment?

If I could create an attendance list page, I think it would be fairly easy to limit viewing to those who have access to sign in. An that page could be printed out.

I am sure something like this is already being developed in your Skunk Works but I was hoping you might have some ideas that I might be able to implement now.

Thanks.

Ty H.


Lorenzo Orlando Caum

  • Support Staff

September 2, 2014 at 3:02 pm

Hi,

Please see the following support post

https://eventespresso.com/topic/ee4-publish-attendees-list/#post-103519

If you need further modification, then please get in touch with an Event Espresso professional here:

https://eventespresso.com/developers/event-espresso-pros/


Lorenzo


Ty

September 2, 2014 at 7:12 pm

Lorenzo:

The php file is a good starting point. However, I could not get it print a list on the event post. Could you walk me through the steps?

Thanks.

Ty H.


Dean

September 3, 2014 at 3:18 am

Hi Ty,

The function just drops into a custom functions plugin or even just your themes functions.php.

It will automatically add the list to after the content. Example (unstyled) http://take.ms/CXbs7


Ty

September 3, 2014 at 5:52 am

Great. I got that working. I moved the source code to a functions.php in a child theme. The list of attendees appears right after the content.

However, I would like to put the listing by event on a page or post that is not public. Any ideas on how to do that?

Thanks.

Ty H.


Dean

September 3, 2014 at 6:26 am

Actually, very easily, it doesn’t take much to convert that function to a shortcode – https://gist.github.com/Apina/a7bd83cdb4e2fa9788dd


Ty

September 3, 2014 at 6:34 am

Very helpful. Thanks.

Can I iterate through a list of upcoming events and generate a list of attendees for each event on the same page or post?

Ty H.


Josh

  • Support Staff

September 3, 2014 at 5:34 pm

Yes. If you look at the code example here:

https://gist.github.com/joshfeck/55f20059953119b46b34

You’ll see that there’s a conditional that checks for is_singular(){. You could change that check to be is_user_logged_in(){

Then, the attendee lists will display on any of the events pages (event lists and single event pages) only if they are logged in.

Alternatively, you could change the action hook from AHEE_event_details_after_the_content to add this to a different hook that’s within a WP loop (like an event archive). Here’s some example code that shows an event archive, with its own action hook you could also use in a page template:

https://gist.github.com/joshfeck/e3c9540cd4ccc734e755


Ty

September 3, 2014 at 6:00 pm

Josh:

Brilliant. Thanks. I’ll try that.

TyH.


Dean

September 4, 2014 at 6:28 am

Hi Ty,

Please let us know how you get on.


Ty

September 5, 2014 at 7:55 pm

Dean:

I have only been able to add a list of names to the individual event descriptions.

Is there a WordPress hook that I can use for the [ESPRESSO_EVENTS] listing that would add registered individuals after each event?

The event categories (except “uncharacterized”) don’t show up when I try to create an archive page.

I did see the file attendee_list.php in the EE templates folder. It has the function “event_espresso_show_attendess”. (Odd spelling.) This looks like unfinished code for an attendee list shortcode. I wonder how hard it would be to get that working.

Would welcome any suggestions. Otherwise our new site is working great.

Ty H.


Josh

  • Support Staff

September 8, 2014 at 10:25 am

Hi Ty,

Since you’re working with custom templates, you can add in your own action hooks. If you look at the gist I linked to earlier, you’ll see an example of where I added a new hook:


Tammy Hornek

September 11, 2014 at 8:15 pm

Where do I enter this code to get this result? What short code do I use on my page?


Tony

  • Support Staff

September 12, 2014 at 3:00 am

Hi Tammy,

The code within this thread adds the attendee list to each events description. I’m not sure if that’s what you are looking for as you are looking to use a shortcode?

I have replied to your other thread with some example code you can use to create a shortcode for use within other pages.

https://eventespresso.com/topic/ee4-registrant-list/


Lorenzo Orlando Caum

  • Support Staff

November 20, 2015 at 7:26 am

Hello again,

A current version of Event Espresso 4 introduces the [ESPRESSO_EVENT_ATTENDEES] shortcode.

This shortcode can be used instead of the sample code snippet:

https://eventespresso.com/wiki/ee4-shortcodes-template-variables/#event-attendees

Thanks


Lorenzo

Viewing 14 reply threads

The support post ‘EE4 List of Attendees’ 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