0

我想获取我在用户个人资料部分制作的自定义个人资料字段,

我想获得该值并在一个简单的页面上显示我已经尝试过这个....

<?php print $profile['Personal Information']['profile_fname']['#value']; ?>

但它不工作....

我想显示该页面上的所有字段....

在此先感谢,
尼兹

更新:

我得到了答案……

4

1 回答 1

2
// load profile fields
profile_load_profile($account); 

//print values - 
//note the variable names after $account-> are the names given when you created the custom fields for the user profiles
<?php echo $account->profile_first_name;?> 
<?php echo $account->profile_last_name;?>
于 2011-04-27T07:01:34.453 回答