Support » Themes and Templates » buddy press theme

  • i am using some buddy press stuff and some fields that i create, some fields return the user profile info but others return the loged user info, this is the code. adress and descripttion work fine but url, email and registration date use the info for the loged user.(not good)

    $user = wp_get_current_user();
    $user_meta = get_user_meta(bp_displayed_user_id());
    $user_meta['address_with_country'] = array(trim("{$user_meta['city'][0]} {$user_meta['country'][0]}"));
    $user_meta['user_registered'] = array(date('m/d/Y', strtotime($user->user_registered)));
    $user_meta['user_url'] = array($user->user_url);
    $user_meta['user_email'] = array($user->user_email);
    $user_meta['user_description'] = array($user->user_description);

  • The topic ‘buddy press theme’ is closed to new replies.