extend the User Contact Info

<?php
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);
?>

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


User Contact Info