Get_user_field() Function

I am trying to display some custom fields and tried using get_user_field() Function.

The code I used is:

<?php echo $company = get_user_field('company');?>

It prints out with a company name that is not mine “Biteme International”.

Can you tell me what I am doing wrong?

My mistake, I was looking at the wrong record. It is working now.

1 Like