• Resolved scarsnare

    (@scarsnare)


    Hi,

    I have a list of attendees of a specific event. I only see bullet points before the username, but no avatar. How can I make it show the avatars?

    I now use the following code:

    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 '<a href='.bp_core_get_user_domain( $EM_Booking->get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) . "\r\n" . $EM_Booking->get_person()->get_name() . '</a>';
    		}elseif($EM_Booking->booking_status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){
    			echo '<a href='.bp_core_get_user_domain( $EM_Booking->get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) . "\r\n" . $EM_Booking->get_person()->get_name() .'</a>';
    		}
    	}

    https://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried this one and seems to be working fine? just to narrow down the problem and help us debug the issue is it possible to try the following temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems

    also, can I know the path of your custom EM templates?

Viewing 1 replies (of 1 total)
  • The topic ‘Avatar doesn't show in #ATTENDEES list’ is closed to new replies.