The attendee shortcode does not have an order by event start parameter, so I would suggest using the “event_identifier” parameter to list out the events as you would like them to appear.
Use the event time template code to add the date: https://eventespresso.com/wiki/shortcodes-template-variables/#time-date
This would get added to the attendee_list.php template. This template can be copied over to /wp-content/uploads/espresso/templates so you do not lose your changes when you update Event Espresso.
Hi, thanks for for – I have the date sorted and have made one answer appear… the problem is I can’t seem to put a space or punctuation between the name and answers.
What I am looking to have is:
[firstname] [lastname] ([Question11] / [Question12])
Any ideas how I need to modify the code I have to achieve this?
=========================================
get_results($sql);
foreach ($events as $event){
$event_id = $event->id;
$event_name = stripslashes_deep($event->event_name);
if (!$this_is_a_reg_page){
$event_desc = do_shortcode(stripslashes_deep($event->event_desc));
}
//This variable is only available using the espresso_event_status function which is loacted in the Custom Files Addon (https://eventespresso.com/download/plugins-and-addons/custom-files-addon/)
$event_status = function_exists('espresso_event_status') ? ' - ' . espresso_event_status($event_id) : '';
//Example usage in the event title:
/* */
//These are example variables to show answers to questions
//$custom_question_12 = ''.do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]');
$custom_question_11 = ''.do_shortcode('[EE_ANSWER q="11" a="'.$id.'"]');
The support post ‘Attendee Shortcode – order events by start date and include other info’ 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.