Extend the User Contact

functions

function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods[‘twitter’] = ‘Twitter’;
//add Facebook
$contactmethods[‘facebook’] = ‘Facebook’;
return $contactmethods;
}
add_filter(‘user_contactmethods’,’my_new_contactmethods’,10,1);

template

<?php
$current_author = get_userdata(get_query_var(‘author’));
?>
< a rel=”nofollow” href=”<?php echo esc_url($current_author->twitter);?>” title=”Twitter”> Follow me on Twitter< /a>


User Contact