Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: User Meta Output On Profile

@alexstine

Participant

Hello @shanebp,

I tried this code but it did not work. Anywhere I went wrong?

$member_id = bp_displayed_user_id();
$x = ( get_the_user_meta( 'staff', $member_id ) == '' ) ? "Staff" : get_the_user_meta( 'staff', $member_id );
echo '<div class="staff-label">';
echo $x ;
echo '</div>';

Thanks.

Skip to toolbar