Try This for IF : if(!empty($user->user_url)) { // OUTPUT } All Code $website = $user->user_url; if(!empty($user->user_url)) { printf(‘<a href=”https://wordpress.stackexchange.com/questions/353378/%s”>%s</a>’, $user->user_url, ‘<i class=”icon-home”></i>’); } $twitter = get_user_meta($user->ID, ‘twitter_profile’, true); if(!empty($twitter)) { printf(‘<a href=”https://wordpress.stackexchange.com/questions/353378/%s”>%s</a>’, $twitter, ‘<i class=”icon-twitter”></i>’); } $facebook = get_user_meta($user->ID, ‘facebook_profile’, true); if(!empty($facebook)) { printf(‘<a href=”https://wordpress.stackexchange.com/questions/353378/%s”>%s</a>’, $facebook, ‘<i class=”icon-facebook”></i>’); } $google = get_user_meta($user->ID, ‘google_profile’, true); if(!empty($google)){ … Read more