List attendees Display Name and link through to profile
-
Hi There,
I do hope you can help I understand that I can list the attendees for a particular event by using the #_ATTENDEES and I know that I can amend the appearance of the this information by changing the attendees.php file.
I have so far managed to list the users and link through to their profiles, however I would like to have the list show the Public Shown Display Name instead.
The code I have so far is as follows:-
foreach( $EM_Bookings as $EM_Booking){ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){ $people[] = $EM_Booking->get_person()->ID; echo '<li>'; echo '<a href="https://mydomain.com/profile/?='. $EM_Booking->get_person()->get_name().'">'.$EM_Booking->get_person()->get_name().'</a>'; echo '</li>'; echo '<li>'. $EM_Booking->booking_comment .'</li>'; }elseif($EM_Booking->booking_status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){ echo '<li>'. $EM_Booking->get_person()->get_name() .'</li>'; } }
Although I have done a lot of research I seem stuck.
I welcome any input and advice.Thanks Paul
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘List attendees Display Name and link through to profile’ is closed to new replies.