Events Made Easy › Forums › How do I … › List attendees for the next event
Tagged: Bookings, next event, variables
- This topic has 5 replies, 3 voices, and was last updated 7 years, 1 month ago by Franky.
-
AuthorPosts
-
Thu 16 Nov 2017 at 11:16 #56984AnonymousInactive
I’d like to create a list of bookings for the next event, but without having to code the EventId into the page. Is there a variable (or a way to create a variable) that I can use as the EventId so my page also shows the bookings for the next event? If I can get the next event, I can increment it to show the next two events etc. I have a feeling such a thing is possible, but I’ve not found it yet.
Thu 16 Nov 2017 at 13:09 #56987FrankyKeymasterEME has no real logic to know the “next” event, but you can use the [eme_events] shortcode and limit to scope=future and only show 1 event. And then, in the template used for that shortcode (via the template_id option), you can use #_EVENTID, which gives you the id of the next event. See the doc on template_id, template_id_header/footer here: http://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_events/
Use something like this as content in the template (in fact another shortcode is used here):
[eme_bookings id=#_EVENTID]Fri 17 Nov 2017 at 01:59 #56997AnonymousInactiveThis is one of the tasks I am trying to complete also.
If I understand you, dont use [eme_attendees] to list the attendees do in a template called from [eme_bookings scope=future limit=1 template_id=xx] instead?Mon 20 Nov 2017 at 11:14 #57003AnonymousInactiveFranky – thank you for your rapid reply. I’ve got two templates containing “[eme_bookings id=#_EVENTID]” and in my page I am using [eme_events scope=future limit=1 template_id=1 template_id_header=2]. In the Bookings List Format field (on RSVP settings page) I’ve put various short codes (e.g. #_EVENTNAME #_RESPNAME) and it works perfectly listing all the bookings. However, the shortcodes (e.g #_EVENTNAME) in the Bookings List Header field, display as the shortcode and don’t translate into data. I’m clearly missing something – all help much appreciated.
Mon 20 Nov 2017 at 17:20 #57006FrankyKeymaster@eric r: sorry, indeed you can use #_ATTENDEES too
@dcorfan: it is possible that the the header/footer templates aren’t parsed for placeholders. I’ll check …
Edit: indeed a small logic error prevents the placeholder replacement from the settings (it will work if you use templates). Expect a fix this week (well, today in fact, I hope to release this week).Mon 20 Nov 2017 at 18:55 #57010FrankyKeymaster@dcorfan: it is fixed with this change (will be in the next version):
https://plugins.trac.wordpress.org/changeset/1771668/ -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.