The get_the_author_meta function gets the Post’s author ID, not the comment-author’s information.
The get_avatar() function is perfectly capable of accepting the comment object whole and working it out from that all by itself. So just call it like so:
echo get_avatar( $comment, 32 );
Related Posts:
- Removing Gravatar.com support for WordPress and Simple Local Avatars
- Alternative to using get_avatar function?
- Using Heroku, need to have non-gravatar avatars, but not stored locally
- How to check if gravatar of user is the default’s one?
- Setting different width and height for gravatar
- How to get gravatar url alone
- Replace default avatar
- Listing all users by their avatars in wordpress
- How to output nothing instead of default avatar?
- get the avatar url instead of an html img tag when using get_avatar?
- Prompt users to Upload Avatar on Registration
- Assign a random avatar to every user?
- Display avatar of user profile when logged in
- get_avatar() default image not working as of wp 3.5 [closed]
- How to restore $args for get_avatar custom “class”?
- Displaying avatar of a user
- Force users to display default Gravatars
- Change wordpress default avatar with custom plugin
- Conditional avatar
- How to get authors avatar
- Which Function Displays The Post Authors Gravatar
- show list of latest comments for each post in a loop
- How do I accesss gravatar?
- Gravatar – Default IMG
- How to change users avatar with specific e-mail addresses
- Return WP avatar inside a function
- Hexagon avatar with get_avatar()
- Anyway of specifying avatar height & width?
- Adding avatars/gravatar to a WordPress blog
- How to give users a fixed gallery of avatars to choose from?
- get_avatar_url() how to reset the default image
- get_avatar() returns image with margin-bottom
- WordPress User Gravatar images not displaying. Loading default instead
- WP User Avatar preview for users
- Retrieve meta_value from add_comment_meta
- Broken Gravatar images in comments
- get_avatar not working
- How to display user’s avatar on the top of main menu in WordPress admin panel?
- list all authors outside of loop with photo from /uploads
- How to change user`s avatar?
- Set default avatar network-wide
- Custom user avatar in the WordPress users listing
- Add aditional class to get_avatar when showing image
- How to filter get_avatar?
- Upload gravatar in WP profile?
- Use local image for default avatar
- How to override Member’s Avatars in BuddyPress [closed]
- Rectangle avatars
- Alternative default avatar generator?
- How to replace any occurence of Gravatars with a local placeholder image?
- How to get larger version of author avatar
- Displaying Logged-In User Name and avatar in WordPress Menu
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- How to remove unused avatar uploads in buddypress [closed]
- Syncing Avatars across multisite
- Replace comment avatars and links at the same time
- Random Default Avatar Function
- Changing comments avatar
- How to link avatar and nickname to profile
- The “Profile Picture” section just disappeared from my User Profile
- How to display user’s avatar on their profile page?
- woocommerce allow users to select or use avatar
- custom avatar removal
- Adding an Avatar to the Top Nav Bar
- Setting the profile picture from another field
- custom default avatar showing broken link
- Disable Gravatars in WordPress
- Buddypress update user avatar image via REST
- How do I get a post author’s image/avatar via RSS from another blog?
- Change avatar on themed profile page
- How can I display other user avatars on an author profile page?
- Custom avatars in wordpress comments?
- How do I get a smaller size of an avatar image
- How to upload WP user avatar on woocommerce account page [closed]
- Change admin avatar only (without Gravatar or plugin)?
- Custom Field Repeating When Using foreach
- Avatar picture does not display when using get_avatar
- How to make current user’s avatar + display name link to their profile?
- Give users alternative/second avatar that is rectangle sized
- How to get all users that uploaded avatars or have gravatars? [closed]
- How do I pull avatar from post using BuddyPress? [closed]
- Author Avatar as default first image
- How to use author’s avatar as Facebook post preview image when a single post is shared
- Inline-Table under TwentyTwelve not working
- How to set thumbnail for each tag?
- Facebook profile pic used as avatar
- How is it possible to current user info on page in WordPress?
- Upload avatar for post comment
- Array for WordPress Avatar Size and Class
- Gender based user avatar
- Custom Avatars for WordPress Comments VIA Website URL?
- WordPress shows admin’s avatar after editing a comment
- Display “a generated one [avatar] based on their e-mail address”
- Change the avatar ratio?
- How to add avatar to authors list?
- How do I add nopin=”nopin” to the default avatar?
- Adding custom avatar field to comments
- Get_avatar filter hook not displaying custom avatar image on frontend
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments