how to display filed values form People » Account settings » Manage fields
If you want to display first name and last name of the logged in user, then you can follow the below code snippets.

global $user;

$account = user_load($user-&gt;uid);

print "First name:" . $account-&gt;field_f_name[LANGUAGE_NONE][0]['value'];
print "Last name:" . $account-&gt;field_l_name[LANGUAGE_NONE][0]['value'];


The global $user object does not load the fields which are attached to user profile. So, We need to use function user_load() in code.

If you want to display First Name and Last Name of the user profile, then you need get uid of the user from the arguments.

$uid = arg(1);

$account = user_load($uid)