Support

Home Forums Event Espresso Premium Problem showing custom question in attendance list

Problem showing custom question in attendance list

Posted: September 2, 2014 at 2:52 pm

Viewing 4 reply threads


Anonymous

September 2, 2014 at 2:52 pm

Hello,

I am using EE3 and the latest wordpress at aabc.nl. I am trying to get the site to show a custom question in the attendance list.

Though I edited the template I dont seem to get the custom question to show. I have added it as part of the personal information in the groups. Maybe that is causing an issue?

foreach ($attendees as $attendee){
						$id = $attendee->id;
						$lname = $attendee->lname;
						$fname = $attendee->fname;
						$custom_question_1 = '<br />'.do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]');
						$city = $attendee->city;
						$state = $attendee->state;
						$country = $attendee->state;
						$email = $attendee->email;
						$gravatar = $show_gravatar == 'true'? get_avatar( $email, $size = '100', $default = 'http://www.gravatar.com/avatar/' ) : '';
						$city_state = $city != '' || $state != '' ? '<br />' . ($city != '' ? $city :'') . ($state != '' ? ', ' . $state :' ') :'';

Any help appreciated 🙂


Sidney Harrell

September 2, 2014 at 5:09 pm

At which point is it failing. I would throw some var_dump’s in there to see if you have anything for the attendee, and if so, what you have for the id. If that is working, is the custom question coming from the shortcode execution?


Anonymous

September 3, 2014 at 2:02 am

Hi,

I am using this [LISTATTENDEES show_expired=”false” show_deleted=”false”] for the attendee page.

I see each attendee name (first and last) and just not the question (Company) – address details are not required.

I added the custom question in Manage Questions and saw the id (12) for the link when editing it.
I then added the question in Manage Question Groups under personal information.

How could I try the var_dump?


Dean

September 3, 2014 at 3:50 am

Hi,

Sorry if this is a simplistic question, but it wasn’t clear from your code: have you echoed the $custom_question_1 variable?

E.g: http://take.ms/MXQFY


Anonymous

September 3, 2014 at 9:22 am

Oh dear, I am embarrassed to admin indeed I had not checked that. Dunno why I assumed all variables would be echoed.

Thanks!

Viewing 4 reply threads

The support post ‘Problem showing custom question in attendance list’ 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.

Event Espresso