However, I can’t get a system question’s answer data to work. For example if I want “City” (ID=6), using that ID on line 19 in the code yields no results.
<?php
/**
* Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
*
* Please be sure to change the Question ID on line 19 to match your custom Question ID
*
* Template Args that are available in this template
* @type EE_Attendee $contact
* @type EE_Event $event
* @type bool $show_gravatar whether to show gravatar or not.
*/
$custom_question_output = '';
if( $contact instanceof EE_Attendee ) {
$prev_answer_value = EEM_Answer::instance()->get_var(
array(
array(
'Registration.ATT_ID' => $contact->ID(),
'Registration.EVT_ID' => $event->ID(),
'QST_ID' => 107 // replace with custom question's ID
),
I’m trying to modify the espresso_event_attendees.php template to display the attendee’s name, city and state… e.g.,
• John Smith — Atlanta, GA
But I hit this snag. I will be very grateful for any advice about how to modify this EE4 template to list attendees this way.
If you have any further questions just let us know.
Viewing 3 reply threads
The support post ‘List Attendees with 'City' and 'State' System Question Data’ 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.