Comments 3Brewstar started the conversationJuly 22, 2020 at 1:09pmHi,A while ago you have given a - very helpfull - code to create a page of all events with all attendees and a total below it. See below: $events = StachethemesStecEvents::get_events(); $html_ar = array(); foreach ($events as $event) { $html_ar[] = sprintf('Event title: %s', $event->get_title()); $attendees = $event->get_parsed_attendees(); foreach ($attendees as $attendee) { $html_ar[] = sprintf('Attendee name: %s', $attendee->name); } $html_ar[] = sprintf('Total attendees: %d', count($attendees)); $html_ar[] = '<hr>'; } echo implode('<br>', $html_ar); Unfortunately - when one of the attendees unlists himself from the event - he is still shown on this page. Perhaps the only thing missing in the code is his status? Is there also a way to NOT show him anymore?Thank you!Regards,Jochem 894Zhivko repliedJuly 24, 2020 at 10:44amHi,Unlist or Decline? Unlist should remove the attendee completely from the event.Is Cache option turned on?I've updated the code and it should display the attendee status.File attached. Stachethemes Developer 3Brewstar repliedJuly 24, 2020 at 11:15amHi, I meant Decline, sorry! Please see the attachment for my further explenations... Thank you! PS: cache is off 94Valentin repliedJuly 24, 2020 at 1:25pmAre your events using the repeater?Stachethemes Support My Time Zone is GMT+3 Envato Profile | Facebook | Twitter | Newsletter | Rate & Review 3Brewstar repliedJuly 24, 2020 at 1:26pmNo... 894Zhivko repliedJuly 24, 2020 at 1:57pmHere's the code. Stachethemes Developer 3Brewstar repliedJuly 24, 2020 at 2:10pmPerfect! Can you give the events a date too?High regards,Jochem 894Zhivko repliedJuly 24, 2020 at 3:09pmYes. Here it is. Stachethemes Developer 3Brewstar repliedJuly 24, 2020 at 3:45pmThank you! You're the best! Final request (this website is for 70+ year old members... sorry for the hassle) Is it possible to have a 'print' button next to each event? If this is too much work than please forget about it ;-)High regards,Jochem 894Zhivko repliedJuly 28, 2020 at 8:50amThis should do it. Stachethemes Developer 3Brewstar repliedJuly 28, 2020 at 10:00amI can't believe it, fantastic!Thanks!High regards,Jochem 894Zhivko repliedJuly 28, 2020 at 10:04amSmall update. The button "print" will not appear in print mode. Stachethemes Developer 3Brewstar repliedJuly 28, 2020 at 10:54amA 100% score, thx!! 3Brewstar repliedSeptember 4, 2020 at 10:34amHi,When an attendee brings extra guests to an event it doesn't show up on this page. It only shows the members that are attending - without the guests.Is it possible to add the guests per event on this page?High regards,Jochem 894Zhivko repliedSeptember 4, 2020 at 1:18pmGood point. It should now count total number of people coming with the attendee. Stachethemes Developer 3Brewstar repliedSeptember 4, 2020 at 7:08pmPerfect, thx! Can it also - like on the frontend - show who is bringing the guest(s)? High regards,Jochem 894Zhivko repliedSeptember 7, 2020 at 6:23pmIsn't Attendee name: field doing this? Stachethemes Developer 3Brewstar repliedSeptember 7, 2020 at 6:43pmUnfortunately not... see attachments. 894Zhivko repliedSeptember 7, 2020 at 6:53pmTry out this one. Stachethemes Developer 3Brewstar repliedSeptember 7, 2020 at 7:21pmYes, you did it, thx!Daniel repliedDecember 24, 2020 at 3:13amApologies for barging in like this, but would it be possible to include additional meta-data, e.g. emails (!!) or my custom RSVP field "company" per attendee row? :) 894Zhivko repliedJanuary 6, 2021 at 2:05pmSorry I don't think this is doable at the moment. Stachethemes Developer Sign in to reply ...
Hi,
A while ago you have given a - very helpfull - code to create a page of all events with all attendees and a total below it.
See below:
Unfortunately - when one of the attendees unlists himself from the event - he is still shown on this page.
Perhaps the only thing missing in the code is his status? Is there also a way to NOT show him anymore?
Thank you!
Regards,
Jochem
Hi,
Unlist or Decline? Unlist should remove the attendee completely from the event.
Is Cache option turned on?
I've updated the code and it should display the attendee status.
File attached.
Stachethemes Developer
Hi,
I meant Decline, sorry!
Please see the attachment for my further explenations...
Thank you!
PS: cache is off
Are your events using the repeater?
Stachethemes Support
My Time Zone is GMT+3
Envato Profile | Facebook | Twitter | Newsletter | Rate & Review
No...
Here's the code.
Stachethemes Developer
Perfect!
Can you give the events a date too?
High regards,
Jochem
Yes. Here it is.
Stachethemes Developer
Thank you! You're the best!
Final request (this website is for 70+ year old members... sorry for the hassle)
Is it possible to have a 'print' button next to each event?
If this is too much work than please forget about it ;-)
High regards,
Jochem
This should do it.
Stachethemes Developer
I can't believe it, fantastic!
Thanks!
High regards,
Jochem
Small update. The button "print" will not appear in print mode.
Stachethemes Developer
A 100% score, thx!!
Hi,
When an attendee brings extra guests to an event it doesn't show up on this page. It only shows the members that are attending - without the guests.
Is it possible to add the guests per event on this page?
High regards,
Jochem
Good point. It should now count total number of people coming with the attendee.
Stachethemes Developer
Perfect, thx!
Can it also - like on the frontend - show who is bringing the guest(s)?
High regards,
Jochem
Isn't Attendee name: field doing this?
Stachethemes Developer
Unfortunately not... see attachments.
Try out this one.
Stachethemes Developer
Yes, you did it, thx!
Apologies for barging in like this, but would it be possible to include additional meta-data, e.g. emails (!!) or my custom RSVP field "company" per attendee row? :)
Sorry I don't think this is doable at the moment.
Stachethemes Developer