Retrieve meta_value from add_comment_meta

You are saving your data with non-unique key (false as last argument), but retrieve it it as singular data (true as last argument). This is likely returning you the first voter on comment. You need to retrieve complete array of values and work with it to be operating on complete data.

WP User Avatar preview for users

I’ve used this plugin in the past and have done this in the past. $blogusers = get_users_of_blog(); if ($blogusers): foreach ($blogusers as $bloguser): $user = get_userdata($bloguser->user_id); <a href=”https://wordpress.stackexchange.com/questions/160928/<?php get_author_posts_url($user->ID); ?>”> get_avatar($user->ID, 70); // 70 is the size of the avatar </a> if(!empty($user->user_firstname)): <h4> <a href=”https://wordpress.stackexchange.com/questions/160928/<?php get_author_posts_url($user->ID); ?>”> <?php echo $user->user_firstname . ‘ ‘ . $user->user_lastname; … Read more

WordPress User Gravatar images not displaying. Loading default instead

Not all your images on that page have issues. For example: http://gravatar.com/avatar/619d8e38359241a952a1f9b67f1f36cd?s=60&d=mm The rest of the images aren’t displaying because the emails you’ve encoded are not recognized with gravatar. The default image shows because you are specifying to use mm when the image can’t be found for your hash. They have several tips for normalizing … Read more

get_avatar() returns image with margin-bottom

Just overrule the margin bottom in your CSS? I have never used get_avatar();, so I have no idea what class(es) it uses, but just add .avatar_class_name { margin-bottom: 0; } and it should work. If it doesn’t, try adding !important after the 0.

get_avatar_url() how to reset the default image

Paste below code in function.php file function theme_custom_avatar_url($url, $idOrEmail, $args){ return get_home_url() . ‘/wp-content/uploads/…/profile_image_0.jpg’; } add_filter(‘get_avatar_url’, ‘theme_custom_avatar_url’, 10, 3);