The get_avatar
function is a pluggable function with it’s first parameter being either the user’s ID or email.
You’re using get_avatar with get_the_author_meta('ID')
which should give you the ID of the current user within the Loop.
From the Codex
If used within The Loop, the user ID need not be specified, it
defaults to current post author. A user ID must be specified if used
outside The Loop.
get_the_author_meta( string $field = '', int $user_id = false )
So it would be redundant using get_avatar
with get_the_author_meta('ID')
, you can just specify the ID directly:
echo get_avatar( USER_ID, 32 );
Related Posts:
- Change the avatar ratio in bbPress login widget
- How to Detect if I am on a bbpress ‘plugin’ page?
- Removing Gravatar.com support for WordPress and Simple Local Avatars
- How to change the text of link ‘Home’ in bbPress forum breadcrumb?
- Custom user avatar in the WordPress users listing
- Upload gravatar in WP profile?
- How to check if gravatar of user is the default’s one?
- Setting different width and height for gravatar
- Use local image for default avatar
- Wrong gravatar showing up?
- Alternative default avatar generator?
- How to get gravatar url alone
- Replace default avatar
- How to create a custom nested loop in bbPress (WordPress + bbPress plugin)
- Listing all users by their avatars in wordpress
- How to replace any occurence of Gravatars with a local placeholder image?
- How to change role titles in Bbpress?
- bbPress or WordPress + forum plugin?
- How to output nothing instead of default avatar?
- get the avatar url instead of an html img tag when using get_avatar?
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Assign a random avatar to every user?
- Replace comment avatars and links at the same time
- BBpress error wp-init [closed]
- get_avatar() default image not working as of wp 3.5 [closed]
- Cannot get local avatars to show [closed]
- Use Gravatar as fallback image if no local image is not found
- Where does bbPress store author info for anonymous users?
- how to edit bbp_forum_freshness_link() format
- BBPress private topics by default
- Conditional if statement ($post->ID == get_the_ID) not working
- How to change avatar of the comment author using comment ID?
- get_avatar won’t show uploaded avatar, only default gravatar
- Force users to display default Gravatars
- How to add more fields to bbPress registration form
- bbPress replies list
- BBPress bbp_new_reply action not firing when user replies to embedded thread
- How to disallow participant from publishing topics(bbpress)?
- custom default avatar showing broken link
- Disable Gravatars in WordPress
- wp_delete_post() not working with BBpress replies
- How to display BBpress statistics?
- Trouble installing bbpress [closed]
- How to disable sidebar only in bbPress and not WordPress?
- Remove hovercard for only certian gravatars
- Which Function Displays The Post Authors Gravatar
- How to get bbpress sticky topics
- How to show recents topics below the forum’s title (WordPress + bbPress plugin)?
- Change the “Default Avatar” admin option via functions.php
- How to add ‘Views’ in the forums page of bbPress (plugin)?
- How do I get a post author’s image/avatar via RSS from another blog?
- How do I remove certain fields from the forum edit my profile page?
- Gravatar – Default IMG
- How can i show Cubepoints ranks/points in bbpress replies
- Arrange BBpress replies in reverse order
- Custom Field Repeating When Using foreach
- Adding avatars/gravatar to a WordPress blog
- Team Collaboration in WordPress
- How to get all users that uploaded avatars or have gravatars? [closed]
- Post and bbpress – link discuss on forum
- Simple Local Avatar Plugin
- Setup login/register buttons for bbPress?
- pre_get_posts and BBPress in Swagger Theme
- what is the topic-view page’s name? in bbpress
- Suggestions to prepare a site which is 90% based on a plugin that’s still on beta stage?
- How to exclude one parent id from post_parent’ => ‘any’, in WordPress / bbPress?
- Scrolling on reply url
- Gender based user avatar
- Get rid of the word private in bbpress forums names
- How to add class to bbPress bbp_get_topic_author_link()?
- WordPress User Gravatar images not displaying. Loading default instead
- Add QuickTag in bbpress replies
- WordPress shows admin’s avatar after editing a comment
- Show custom default avatar instead of gravatar
- If post type = forum then breadcrumbs Home > Forums
- Connect WordPress comment moderation with bbPress Moderation plugin
- bbPress – Post count increases after every edit
- How to remove br and p tags from bbPress
- How to use the bbPress import tool
- Broken Gravatar images in comments
- bbpress plugin moderation
- bbPress plugin – How do I add a forum description?
- bbpress Not Showing: How to troubleshoot?
- bbPress – select a topic reply as “answer”
- How to load locally saved author photos based on author ID
- bbPress is not displaying video player
- How to add avatar to authors list?
- How do I add nopin=”nopin” to the default avatar?
- Convert User’s Avatar/Gravatar to a jpg or png on the Fly
- Adding custom avatar field to comments
- Show the parent forum in a topic with bbPress [closed]
- How do I Create Forums with bbpress Plugin that can only be Viewed by Logged in Users
- Intermittent 404 errors, rewrite rules, and BBPress
- Customize Avatar using user meta
- Using WordPress as an API [closed]
- get_posts() not working in functions.php
- Return WP avatar inside a function
- Avatar picture is broken
- Save meta box data from selected dropdown list in bbpress reply form
- Remove embed url for internal links