0

ユーザー プロファイル部分で作成したカスタム プロファイル フィールドを取得したいのですが、

私はその値を取得し、これを試した1つの単純なページに表示したい....

<?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 に答える