This is what I have added to the functions.php to add Twitter, Facebook and Google+ to the user profile. I have also removed Yahoo Messenger, AOL Instant Messenger and Jabber
// Contact Info fields in profile
add_filter('user_contactmethods','new_contactmethods',10,1);
function new_contactmethods( $contactmethods ) {
$contactmethods['twitter'] = 'Twitter'; // Add Twitter
$contactmethods['facebook'] = 'Facebook'; // Add Facebook
$contactmethods['googleplus'] = 'Google+'; // Add Google+
unset($contactmethods['yim']); // Remove YIM
unset($contactmethods['aim']); // Remove AIM
unset($contactmethods['jabber']); // Remove Jabber
return $contactmethods;
}
Not all authors have each of these types of profiles. I want to display links to their social profiles, but only if they have entered their username in their profile for the social profile type. If they do not have a Twitter account (for example) I do not want anything displayed.