User Dashboard

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #237624
    IBSP
    Spectator
    Hello I want to show some other information of that users, like user's bio, Title refer: https://prnt.sc/qew7pp thanks
    #237641
    Misty
    Member
    This reply has been marked as private.
    #237661
    IBSP
    Spectator
    It didn't work for me, This is how it looks after placing this code https://prnt.sc/qf6ulq   But i want it here https://prnt.sc/qf6vlm  
    #237700
    Misty
    Member
    This reply has been marked as private.
    #238287
    IBSP
    Spectator
    This reply has been marked as private.
    #238356
    logan
    Member
    Hello, actually this the correct code the only reason behind this issue is your template layout is different. please try changing the layout from wp-admin >> appearance >> customize >> layout >> profile layout. try this with another layout. it will work.
    #238366
    IBSP
    Spectator
    This reply has been marked as private.
    #238413
    logan
    Member
    Hello, please paste this code in customizer plugin >> customizer.php add_action('bp_profile_after_member_header_meta',function(){   if(!is_user_logged_in()){   return;   }else{   $user_id = bp_displayed_user_id();   $user = get_user_by('id',$user_id);   //get_currentuserinfo();   $field1 = 12;   $field2= 16;   echo "<span>User ID: " . $user->id . "</span></br>";   echo "<span>Username: " . $user->user_login . "</span></br>";   echo "<span>User email: " . $user->user_email . "</span></br>";   echo "<span>User first name: " . $user->user_firstname . "</span></br>";   echo "<span>User last name: " . $user->user_lastname . "</span></br>";   echo "<span>User display name: " . $user->display_name . "</span></br>";   echo "<span>Field 1: " . bp_get_profile_field_data( 'field='.$field1 .'&user_id=' . $user->id) . "</span></br>";   echo "<span>Field 2: " . bp_get_profile_field_data( 'field='.$field2 .'&user_id=' . $user->id) . "</span></br>";   }   },99); refer: https://share.getcloudapp.com/OAuLG945 user profile field id to show the details as per your requirement.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘User Dashboard’ is closed to new replies.