Hi, I am new to the forum and Drupal.
I am building a website, and it's mostly straight forward, but I am stuck at customizing user profile page. I don't know how to access user information from this array. I am editing user-profile.tpl.php, and by following tutorial on customizing this page, I have added few lines of code so I can access $user_profile array.
Thing is, I have this new custom field "field_genre_01", and now this array is confusing me totally. Why is my new filed appearing in two places? .
How can I get user name, email, or for example user_picture markup from php in few lines of code??
Thanks!
Array
(
[user_picture] => Array
(
[#markup] =>
[#weight] => -10
)
[field_genre_01] => Array
(
[#theme] => field
[#weight] => 0
[#title] => genre
[#access] => 1
[#label_display] => above
[#view_mode] => full
[#language] => und
[#field_name] => field_genre_01