How to add custom fields to an Author page
Posted: October 13th, 2011, 8:58 am
These 2 worked for me on my Author page!
"Contact_Number" is a Custom Field I made to hold a telephone number.
I made that in 'General Options', 'Registration/Profile Fields and Options' and then 'Add new Field'
Admin, please correct if wrong but this worked OK for me.
- Code: Select all
<?php echo get_user_field('Contact_Number', $author); ?>
<?php echo get_user_field('Contact_Number', get_the_author_meta( 'ID' )); ?>
"Contact_Number" is a Custom Field I made to hold a telephone number.
I made that in 'General Options', 'Registration/Profile Fields and Options' and then 'Add new Field'
Admin, please correct if wrong but this worked OK for me.