Home › Forums › Ticket Products › Event Tickets Plus › Attendees Not Showing on Events Page
- This topic has 13 replies, 2 voices, and was last updated 6 years, 6 months ago by ccwbra.
-
AuthorPosts
-
August 21, 2017 at 5:24 am #1338048ccwbraParticipant
Hi, I have the settings to “not hide” attendees from appearing on the events page, but no attendees are appearing. Can you help fix this feature?
August 21, 2017 at 11:22 pm #1338426JenniferKeymasterHi there,
I’d be happy to help you figure out what’s going on.
Can you please share your system information with me? Can you also try testing for conflicts with your theme and other plugins? I’d recommend starting with switching to a default theme to see if the attendees then show up. I took a look at the page HTML, and I don’t see that section at all.
Let me know how it goes!
Thanks,
Jennifer
August 22, 2017 at 4:24 am #1338471ccwbraParticipantHi Jennifer, I had another problem earlier where I provided all the system information. Victor helped me. Can you look here and see system info?
August 22, 2017 at 3:31 pm #1338792ccwbraParticipantThis reply is private.
August 22, 2017 at 3:33 pm #1338794ccwbraParticipantAlso, I activated a default theme and still did not see attendees. Any ideas?
August 23, 2017 at 1:49 am #1338940JenniferKeymasterHello,
Thanks for sharing your system info! I don’t see anything obvious there that would be causing this problem.
Could you please send me a screenshot of the ticket edit screen for one of the events where the attendees are not showing? Just to make sure, are you checking the “Display attendees list” option on each event that you would like to display attendees for?
August 23, 2017 at 5:44 am #1338987ccwbraParticipantHi, I checked “display attendees” and it’s working now. I need to get members to create Gravatar accounts to show images. However, is there any way to make it more clear who they are, like you mouse over and see their names?
August 25, 2017 at 9:09 am #1340288JenniferKeymasterHello,
I’m glad to hear it’s working! You could add the attendee name below the avatar with a quick customization…Using these instructions, you would need to copy the attendee-list template (found at wp-content/plugins/event-tickets-plus/src/views/attendees-list.php) into your child theme. Then, you can replace the code in the copied template with the code in this post. It would require further customization to only display the names on hover, but you could do it by adding in some JavaScript.
I hope that helps! Please let me know if you have any questions.
Thanks,
Jennifer
September 8, 2017 at 7:24 am #1346579ccwbraParticipantHi Jennifer, I followed these steps but the attendee names are not showing. Can you see here? There’s a gravatar but no name…. http://ccwbra.com/event/union-lake-regatta-2/
September 12, 2017 at 10:38 am #1348198JenniferKeymasterHello,
Sorry that didn’t work for you…Could you please send me a copy of your attendees-list.php template? I’ll test it out on my end and see if I can find any issues there.
Thanks!
Jennifer
September 12, 2017 at 12:15 pm #1348230ccwbraParticipant<?php
/**
* Renders the attendee list for an event
*
* @version 4.1
*
*/
?>
<div class=’tribe-attendees-list-container’><?php esc_html_e( ‘Who\’s Attending’, ‘event-tickets-plus’ ) ?>
<?php echo esc_html( sprintf( _n( ‘One person is attending %2$s’, ‘%d people are attending %s’, $attendees_total, ‘event-tickets-plus’ ), $attendees_total, get_the_title( $event->ID ) ) ); ?>
<ul class=’tribe-attendees-list’>
<?php
/* Add more information to the attendee output */
global $post;
$attendees = Tribe__Tickets__Tickets::get_event_attendees( $post->ID );
foreach ( $attendees as $key => $attendee ) {
if ( isset( $attendees_list[$attendee[‘attendee_id’]] ) ) {
$attendees_list[$attendee[‘attendee_id’]] .= ‘<span>’ . $attendee[‘purchaser_name’] . ‘</span>’;
}
}
foreach ( $attendees_list as $attendee_id => $avatar_html ) { ?>
<li class=’tribe-attendees-list-item’><?php echo $avatar_html; ?>
<?php } ?></div>
September 18, 2017 at 2:48 pm #1350878JenniferKeymasterThanks for sending the code! I did some testing, and your code is working on my end – the names were displaying under the avatars. Can you verify that you copied the template over to wp-content/themes/your-theme/tribe-events/attendees-list.php? Note that you will need to create the ‘tribe-events’ folder and then add the attendees-list.php template file to that folder. Then, you can paste in the code from this post (replacing the code that is already in the file).
Let me know if that helps!
October 10, 2017 at 9:35 am #1361638Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Attendees Not Showing on Events Page’ is closed to new replies.