Reply To: bp_get_member_type() is not working in the loop
I set up two types (‘kw’ & ‘max’) so what i want to achieve is that the echo $type; prints ‘kw’ or ‘max’ depending on what the user is.
That’s great, but what does echo $type actually print to screen? For example:
<?php do_action( 'bp_before_directory_members_list' ); ?>
<ul id="members-list" class="item-list" role="main">
<?php while ( bp_members() ) : bp_the_member(); ?>
<?php
$user_id = bp_get_member_user_id();
$type = bp_get_member_type( $user_id );
echo $type;
?>