Posted: February 17, 2014 at 9:03 pm
|
Hi I did bought the Calendar Template and is working just fine, I did add the list of attendees and that works beatifull, I just need to add 2 extra fields from the attendee form, celular and comments from the registration form, how can I do that? TY |
Hi Carlos, How have you added the list of Attendees? Are you using the [LISTATTENDEES] shortcode? |
|
|
espresso-template-calendar-table%2Findex.php <td class=”td-event-info”><span class=”event-title”>“><?php echo stripslashes_deep($event->event_name); ?></span> <td class=”td-event-register”><?php echo do_shortcode(‘[LISTATTENDEES event_id=”‘.$event->id.'” type=””]’);?></td> So, how can I add the celular and the comments of those reservations? |
Hi Carlos, As you are using the [LISTATTENDEES] shortcode, this line: <?php echo do_shortcode(โ[LISTATTENDEES event_id="'.$event->id.'" type=""]โ);?> You can edit the template to include custom questions. If you open event-espresso/templates/attendee_list.php you can see how the output fo that shortcode is constructed. Notice on line 87 you have this line: //$custom_question_1 = '<br />'.do_shortcode('[EE_ANSWER q="12" a="'.$id.'"]'); Either uncomment that line, or copy & paste it above and uncomment it so you end up with: $custom_question_1 = '<br />'.do_shortcode('[EE_ANSWER q="XX" a="'.$id.'"]'); You need to change XX to the ID of your custom question (you can view this within Event Espresso -> Questions) Then just include $custom_question_1 on line 91 like so: <li class="attendee_details"> <span class="espresso_attendee"><?php echo $gravatar ?><?php echo stripslashes_deep($fname . ' ' . $lname) . $city_state . $custom_question_1 . '</p>'; ?> </span> Add spaces/formatting to the output as needed. Does that help? ๐ |
|
|
ok almost there I did set up: And it brings the info but now how can I set it up to fit on the same row because custom 1 takes one row and custom 2 another? Thank you |
|
Can you give a link to where you have it set up? |
|
Sure |
Hi Carlos, Its likely me, but I can’t see anywhere that would be using the code mentioned from the link provided? You you link directly to the page with the code in question please? |
|
The support post ‘Aditional info on Attendee 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.