If you want to display the info on the current user logged in you can use get_currentuserinfo
. [Codex]
Example from Codex
<?php global $current_user;
get_currentuserinfo();
echo 'Username: ' . $current_user->user_login . "\n";
echo 'User email: ' . $current_user->user_email . "\n";
echo 'User first name: ' . $current_user->user_firstname . "\n";
echo 'User last name: ' . $current_user->user_lastname . "\n";
echo 'User display name: ' . $current_user->display_name . "\n";
echo 'User ID: ' . $current_user->ID . "\n";
?>
Or if you want display the info for a user that is not the current user logged in, you can use get_userdata
. [Codex]
The two links to the WP Codex should provide you with the syntax of the two functions. If you have any further questions or they did not work please ask.