Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Simply display friends of member

@aliceg

Participant

Thank you for your reply. I will put all my “solutions” here :

Last solutions :

$is_friend = friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() );

if($is_friend) {
   bp_member_profile_data();
}

This work but only show the count, and I would like the avatars and links :

if ( is_user_logged_in() ) :
		if ( bp_is_active( 'friends' ) ) :	

			echo '<br/><br/>'. bp_get_total_friend_count( $user_id ) .'';
			  
		endif;
	endif;

This shounl be a good idea… but it shows all my members…

if ( bp_has_members( 'user_id optional=true') ) : ?>
<?php bp_get_template_part( 'members/members-loop' ) ?>
<?php endif; 

Do you know the action code to display realy easily?
Thank you !

Skip to toolbar