@kizzywizzy – The function get_user_meta() just returns the data; it does not display it. So if that is the only line of code you’ve added, you won’t see any output. You’ll want to assign the output of the function to a variable and echo that, or just echo the output directly.
Here is the example from the Codex:
$user_id = 9;
$key = 'last_name';
$single = true;
$user_last = get_user_meta( $user_id, $key, $single );
echo '<p>The '. $key . ' value for user id ' . $user_id . ' is: ' . $user_last . '</p>';
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How to: get_user_meta – BuddyPress’ is closed to new replies.