I would like to allow an Events Author to see in the front-end – in his account page for example – the list of all the events he created so that he can access them quickly. Then I would like to be able to display only his ongoing or future events, only his past events, etc.
In a second part of development (if possible), I also would like to display the registrants for each events.
Do you know how could I do these 2 points please?
Many thanks in advance
Thanks fot he solution, I’m sure it can work. However I didn’t manage to make it work until now because we created our own page and url replacing /author/username/
I think I have to add the connected author ID as a paramter in the function. Do you know how I could do this ?
Thanks for all your answers, I finally managed to display the list of events in the Account page of the organizers. I didn’t manage to display the list of registrants yet thgouhg, I’m still working on it.
In the meantime, do you know if I can use the shortcode [ESPRESSO_EVENT_ATTENDEES] in the email sent to the organizers each time a registration is apporved in EE4? If I can’t, how could I do to send an automatic email to an organizer to send him the list of all registrants he has for each of his event? My need is to let the organizers know frequently who is precisely attending their events.
In a front end account page template I display list of events of a user, and I add the list of attendees. Its almost working. I have a problem on status, the participant appears in each shortcode. Example
Liste de vos ateliers
Atelier Danse et Théâtre – Modifier
Confirmé
Jacques Jahnichen
En attente
Jacques Jahnichen
Annulé
Jacques Jahnichen
Refusé
Jacques Jahnichen
After some investigations.
The first shortcode give the results for all the next shortcodes. I cannot reset shortcode (I have tried wp_reset_query(); and wp_reset_postdata();)
After some works, I give up shortcode because I got strange behaviour and I wanted have tickets before to have attendees.
Last question (For today 😉 What is the field to know if the registration is Approved, Waiting, Cancelled ?
After some works, I give up shortcode because I got strange behaviour and I wanted have tickets before to have attendees.
Shortcodes aren’t designed to be used that way, alot of people do, but its not how they are expected to be used, so its best to switch away from doing this sooner rather than later 🙂
What is the field to know if the registration is Approved, Waiting, Cancelled ?
It’s the STS_ID within {prefix}esp_registration.
However I would highly recommend taking a look into use our models for this, take a look here:
The support post ‘Display in front-end the list of events created by a specific author’ 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.