Go to Events > Settings then select the Formatting tab and enable Super Advanced mode then select the Events section and add the following after line 45 in the single event page format:
<h3>
SIGNUPS (#_BOOKEDSPACES signups)
</h3>
#_ATTENDEESLIST
In addition I added the number of spaces reserved for each attendee by changing the attendees list template. I created the directory wp-content/plugin-templates/events-manager/placeholders then I copied wp-content/plugins/events-manager/templates/placeholders/attendeeslist.php to that directory then I modified the copied version of the file so it looks like this:
<?php
/* @var $EM_Event EM_Event */
$people = array();
$EM_Bookings = $EM_Event->get_bookings();
if( count($EM_Bookings->bookings) > 0 ){
?>
<ul class="event-attendees">
<?php
foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */
$spaces = $EM_Booking->get_spaces();
$spaces_str = $spaces > 1 ? '(' . $spaces . ')' : "";
if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
$people[] = $EM_Booking->get_person()->ID;
echo '<li>'. $EM_Booking->get_person()->get_name() . $spaces_str .'</li>';
}elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){
echo '<li>'. $EM_Booking->get_person()->get_name() . $spaces_str .'</li>';
}
}
?>
</ul>
<?php
}
-
This reply was modified 7 months, 3 weeks ago by
joneiseman.