• Resolved paulbluicouk

    (@paulbluicouk)


    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

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try something like $EM_Booking->get_person()->display_name

    Thread Starter paulbluicouk

    (@paulbluicouk)

    Hi Angelo,

    Sorry for my delayed response, I have been away.

    I have tried your suggestion, but unfortunately is I use your recommendation nothing appears at all.

    I have decided that it would be better if the list actually showed the username name and not the public display name.

    I assume I need something else instead of get_name.

    Many Thanks for your help
    Regards Paul

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.