Posted: June 14, 2013 at 4:19 pm
|
Is there currently a way to list the upcoming events filtered by the Event Staff / Speaker? I would like to set up pages for each speaker, so they can see the classes/events they are scheduled to attend. Kind of like [EVENT_LIST category_identifier=your_category_identifier] but instead something like [EVENT_LIST staff_identifier=your_staff_identifier] I’m assuming there’s currently no way to do this, but I think it would be a nice feature to add. Any help would be appreciated. |
Hi Kyle, You can do this by using the Staff Shortcode: https://eventespresso.com/wiki/shortcodes-template-variables/#staff |
|
|
I don’t just want to display the Staff member’s information, I want to display ALL the events that particular staff member is associated with. For example: I have a staff member named John. In this scenario, John can go to mywebsite.com/john to see ALL the classes that he will be speaking at because I have checked the box next to his name in those events. I don’t want to send him to mywebsite.com/john just so he can see his own personal information. Does that make better sense? |
It makes total sense. There is a staff parameter for [EVENT_LIST], so you can list events based on Event staff/speaker. It will look like this: [EVENT_LIST staff_id=1] This will display all the events that are assigned to the staffer with the ID of 1. |
|
|
Awesome, that works like a charm! Do you think that the “staff_id=” call can be added to the other shortcodes like the calendar or espresso_table ones in a future update? I prefer the way the classes are displayed via those shortcodes. Thanks for the help Josh & Jonathan! |
Hi Kyle, Something like this might happen with the calendar after Event Espresso is converted over to use custom post types for events and staff. I’ll note your request. With the espresso_table.php, that’s something we typically do not update, it’s more of a starter template that’s made to be customized. I swapped out the category filtering for staff_ID filtering and posted it in a gist that you could use to display events with the [ESPRESSO_TABLE] shortcode by Staff ID. |
|
|
Hi Josh, Looking forward to the update! Thanks for posting that gist! I made the changes and it worked perfectly for [ESPRESSO_TABLE] I really appreciate your help! |
You’re welcome Kyle. |
|
The support post ‘List Events based on Event Staff / Speaker’ 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.