Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How do you hide the admin details in a WP sidebar? Re: How do you hide the admin details in a WP sidebar?

#77001
mattvot
Member
Code:
function get_the_avatars_with_link_to_authors(){
$authors = get_users_of_blog();
foreach ($authors as $author){
$author_data = get_userdata($author->user_id);
$author_nicename = $author_data->user_nicename;
$author_displayname = $author_data->display_name;
if( ! $author_data->user_level === 10 ){
$link .= ‘

  • ID) . ‘” title=”‘ . sprintf( __( “View %s’s profile” ), $author_displayname ) . ‘”>’ . get_avatar($author_data->ID,$size = ’35’) . $author_displayname . ‘
  • ‘;
    }
    }
    return $link;
    }