Author social media aren't shown on the page
I'm trying to show the authors social medias on the page but they aren't showed at all.
Here is the code that I have so far
$website = $user-user_url;
if($user-user_url != '') {
printf('a href="%s"%s/a', $user-user_url, 'i class="icon-home"/i');
}
$twitter = get_user_meta($user-ID, 'twitter_profile', true);
if($twitter != '') {
printf('a href="%s"%s/a', $twitter, 'i class="icon-twitter"/i');
}
$facebook = get_user_meta($user-ID, 'facebook_profile', true);
if($facebook != '') {
printf('a href="%s"%s/a', $facebook, 'i class="icon-facebook"/i');
}
$google = get_user_meta($user-ID, 'google_profile', true);
if($google != ''){
printf('a href="%s"%s/a', $google, 'i class="icon-google"/i');
}
$linkedin = get_user_meta($user-ID, 'linkedin_profile', true);
if($linkedin != ''){
printf('a href="%s"%s/a', $linkedin, 'i class="icon-linkedin"/i');
}
Only the Website
is visible. Any idea where is the mistake here?
Topic social-sharing list-authors author functions Wordpress
Category Web