By leemchildress on
From everything I read, I thought I was doing this right, but obviously something is wrong.
I have several custom profile fields. One is called 'profile_first_name' which is in a category called 'Personal information'. I want to display a greeting on the front page, and so I am using:
global $user;
print 'Greetings, ' . $user->profile_first_name;
All the above prints is 'Greetings, '
I did a print_r($user) and my custom fields do not show. What step am I missing?
Comments
Answered my own question
For those of you having the same question (or maybe I was the only one), I just learned of profile_load_profile($user). After calling that function, all is well.