Render Profile2 field out of Profile2 page
Retrieve Profile2 Profile Data Programmatically


Implement profile2_by_uid_load() to get the data.

$profile2_data = profile2_by_uid_load($user->uid, 'profile_id');


$profile2_data will be an object containing all the data from profile_id for the requested user.



Retrieve Profile2 Edit Form Programmatically

module_load_include('inc', 'profile2_page', 'profile2_page');
$profile2 = profile2_by_uid_load($user-&gt;uid, 'profile_id');   // profile_id = machine name
$entity_form = entity_ui_get_form('profile2', $profile2, 'edit');
return $entity_form;