Displaying an Uploaded Image as a Custom Avatar in WordPress
If you’re trying to get an avatar for a specific user, you probably shouldn’t be using get_the_author_meta() – I’m not sure why you would use that (perhaps you got part of this from another snippet?). get_avatar() can get the user’s avatar by either ID or email. If the user is logged in, their ID is … Read more