<?php echo get_user_field("city"); ?>
Posted: April 11th, 2011, 8:04 pm
I am trying to add a few custom fields to the author page. I used this:
Works great for the user that's logged in, but how can I show a field from on a profile from any user?
I tried
But that didn't work. What am I doing wrong?
Thanks a lot!
- Code: Select all
<?php echo get_user_field("city"); ?>
Works great for the user that's logged in, but how can I show a field from on a profile from any user?
I tried
- Code: Select all
<?php echo get_current_user_field("city,"); ?>
But that didn't work. What am I doing wrong?
Thanks a lot!