ユーザー プロファイル部分で作成したカスタム プロファイル フィールドを取得したいのですが、
私はその値を取得し、これを試した1つの単純なページに表示したい....
<?php print $profile['Personal Information']['profile_fname']['#value']; ?>
しかし、それは機能していません....
そのページのすべてのフィールドを表示したい....
前もってありがとう、
ニッツ
アップデート:
私は答えを得た....
ユーザー プロファイル部分で作成したカスタム プロファイル フィールドを取得したいのですが、
私はその値を取得し、これを試した1つの単純なページに表示したい....
<?php print $profile['Personal Information']['profile_fname']['#value']; ?>
しかし、それは機能していません....
そのページのすべてのフィールドを表示したい....
前もってありがとう、
ニッツ
アップデート:
私は答えを得た....
// 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;?>