Skip to main content

Questions tagged [avatar]

An avatar is a graphical representation of a user

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
466 views

Syncing Avatars across multisite

There's gotta be a way. I have tried a bunch of different multisite sync plugins and they sync users and roles just fine (even paid for plugins to do so)....but avatars don't sync. My registration ...
CA Legendre's user avatar
2 votes
0 answers
939 views

Assign a random avatar to every user?

I have 10k users on my site and only around 1k of them are using custom avatars (through a shortcode avatar upload I have). The rest are using a default (and custom) singular gravatar image. I want ...
GenesisBits's user avatar
1 vote
0 answers
52 views

Adding an Avatar to the Top Nav Bar

I am attempting to add an avatar image to the top nav menu. I am currently using this function, which takes a custom link and replaces it with the currently logged in user's name. That part of the ...
Nick's user avatar
  • 11
1 vote
0 answers
807 views

How to change user avatar using REST API?

I've tried all the methods, but nothing works. When creating a new user with the avatars URLs already specified for the pictures, nothing happens either.
Astraport's user avatar
  • 121
1 vote
0 answers
272 views

Change wordpress default avatar with custom plugin

I've used my own custom plugin for custom functions and I'm trying to change the default WordPress avatar to my own custom avatar. My plugin name is "ACh-Toolkit". I used the following functions but ...
ACh's user avatar
  • 11
1 vote
1 answer
394 views

Adding custom class to get_avatar() image doesn't work

Instead of outputting <img alt="" src="#" srcset="#" class="avatar avatar-60 photo" height="60" width="60"> I want to add custom class which looks like <img alt="" src="#" srcset="#" class=...
p oneland's user avatar
1 vote
0 answers
35 views

Setting the profile picture from another field

I have a user registration a profile plugin where user has the ability to upload a top cover photo of their profile and hence it also has the cover photo option under the users tab in wp admin. What i ...
Wali Muhammad Khubaib's user avatar
1 vote
1 answer
2k views

User avatar-ACF fields

I'm running wp multisite and using ACF custom field (user edit) for my local avatar, in my functions.php i added : add_action('get_avatar', 'tsm_acf_profile_avatar', 10, 3); function ...
MR.Don't know's user avatar
1 vote
0 answers
590 views

Disable Gravatars in WordPress

I have found this code for disable gravatar on email but it not work on 100% why? Because it replace online image but the image always open with gravatar domanin.. function __default_local_avatar() { ...
user3188294's user avatar
0 votes
0 answers
50 views

How to replace Avatar link in profile page with upload profile pic. button using media library and display it in profile page and all wordpress site

I am developing a WordPress theme and using the following php code and JavaScript code, I replaced the Gravatar link with a button to upload profile image using Wordpress media library, the media ...
Hatem Frere's user avatar
0 votes
0 answers
65 views

Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in Wordpress

Am creating a WordPress site whereby am enabling users to upload their own custom profile images from a custom form. Once they upload am storing the image URL in a custom database table and the image ...
Pweb's user avatar
  • 1
0 votes
0 answers
149 views

How to add avatar to authors list?

I have code that shows authors list: <?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?> It works fine, with number of posts per author and author page link https://images2.imgbox....
arteaster's user avatar
0 votes
0 answers
172 views

get_avatar() is not working in my custom theme

I have used this code to display author image. It was working in Local By FlyWheel but isn't working on a live site. It's not working means that it is not producing any HTML. <?php $post_id =...
Anshu Jindal's user avatar
0 votes
1 answer
67 views

How is it possible to current user info on page in WordPress?

I am new at WordPress. I have need to display current user info on page: avatar, name, lastname, login... I have spent several hour on web, but could not find clean solution: How is it possible to do ...
Tornike Shavishvili's user avatar
0 votes
1 answer
217 views

List of all authors avatars

I'm looking for a way to retrieve all authors with their avatar. I know there is a way to get an authors avatar but I want to get all avatars of all the authors :) echo get_avatar(get_the_author_meta('...
user avatar
0 votes
1 answer
423 views

Upload avatar for post comment

I have a comment form and any one can add comments without creating an account. Now client asking to allow user to upload profile picture from the comment form. Check attached image below. Any help ...
Divyang's user avatar
  • 13
0 votes
1 answer
87 views

Wordpress Custom Local Avatar not showing in comments

I have built my own frontend user avatar upload script. Now the avatars show fine in the user section in admin and in the top panel. However I can't seem to get them showing in the comments and author ...
David James Coxsell's user avatar
0 votes
1 answer
64 views

Array for Wordpress Avatar Size and Class

I tried to set size and class for wordpress avatar in comments but I couldnt. <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, array('class' => 'media-object') ); ?> ...
I dont believe you's user avatar
0 votes
1 answer
479 views

Gender based user avatar

I'm creating a matrimonial website. I want to set the user avatar based on the gender(I have a custom_user_meta for the user's gender) But I don't understand how to get the "user id" in order to use ...
shimii's user avatar
  • 15
0 votes
0 answers
2k views

Wordpress User profile with Avatar upload on the front end without plugin?

I want to edit the Wordpress user profile on the front end without using any plugins. I went through SO questions and found a somewhat question and found @Bainternet answer somewhat useful. How to ...
Rajeev's user avatar
  • 121
0 votes
1 answer
789 views

get_avatar_url() how to reset the default image

I use the get_avatar_url() to retrieve the default gravatar image of an user. get_avatar_url( $user_id ); In case there is non I will provide and default using the arguments array. $arg = array ( '...
user3361559's user avatar
0 votes
2 answers
2k views

Display post author avatar for Ultimate Member

I want to show avatar from the post author. I use Ultimate Members and want to show the avatars that are defined via UM. <?php global $post; $url = get_avatar_url( $post, array( 'size' => 48 ));...
Max Mustermann's user avatar
0 votes
2 answers
712 views

Yoast SEO plugin open graph add meta tag to fetch Avatar from Author Page

I'm trying to create a new og:image for author avatar when the users sharing their author profile page to Facebook. I'm a newbie with WordPress, After searching for more than 6 months but i'm always ...
Adham Mohamed's user avatar
0 votes
4 answers
1k views

How to override get_avatar() function?

I need for a specific plugin to override the wordpress function get_avatar() to bind the profile image to an other image with some condition. How can I do this ? Is there a specific hook or filter to ...
J.BizMai's user avatar
  • 900
0 votes
1 answer
46 views

get_avatar() returns image with margin-bottom

Hi completely new to WordPress. I'm trying to add avatars to the page, and following the guide, I'm using get_avatar() function to achieve this. The avatar can be displayed, but I'm not sure why there ...
richards's user avatar
  • 101
0 votes
2 answers
169 views

Wordpress shows admin's avatar after editing a comment

Recently I updated my wordpress to 4.2.1 and now I have a problem with editing people's comments. After editing them, the avatar picture of who edited the comment is shown instead of the avatar of the ...
Amirreza Nasiri's user avatar
0 votes
1 answer
61 views

How to have a specific image show up for everyone who comments?

How can I have an image I created be a avatar for everyone who comments on my wordpress posts? So it will have my logo or something instead of a blank square? Thanks!!
Love Joy Glitter's user avatar
0 votes
3 answers
3k views

Show custom default avatar instead of gravatar

I'm using this custom function to get the default avatar from my server instead of gravatar: if(!function_exists('custom_avatar')){ function custom_avatar($avatar_defaults){ $...
user3705773's user avatar
0 votes
1 answer
76 views

WP User Avatar preview for users

I have downloaded WP User Avatar plugin, to add the functionality to create your own avatars for users. I was wondering if it is possible to show for each user the avatar in my theme markup. How can I ...
Casper's user avatar
  • 409
0 votes
1 answer
164 views

Adding custom avatar field to comments

I want to store a users Twitter Profile Image when I found out that they've tweeted the link of a post (by using the Twitter API), but I'm stuck with the following issue: How do I store the Profile ...
Andre's user avatar
  • 101
0 votes
2 answers
356 views

Retrieve meta_value from add_comment_meta

I have a voting function for comments which needs to display the avatars of the users who voted for a specific comment. I am having trouble getting the user id of the voter ($supporter). All I seem to ...
inTOWN's user avatar
  • 101
0 votes
1 answer
92 views

avatar displays outside of targeted area

I use this micro message system script and I want to add an avatar to it, however, my lack of PHP knowledge is making this difficult. The code I use to display an avatar is: userphoto_thumbnail($...
Amanda Bynes's user avatar
0 votes
2 answers
627 views

Displaying an Uploaded Image as a Custom Avatar in Wordpress

Am creating a WordPress site whereby am enabling users to upload their own custom profile images from a custom form. Once they upload am storing the image URL in a database table and the image is then ...
Pweb's user avatar
  • 1
0 votes
2 answers
798 views

Conditional avatar

I am using a plugin that allows users to upload profile graphics in place of avatars. The plugin is "User Avatar". I am displaying user profile graphics with this code: echo get_avatar( ...
user2591811's user avatar
-1 votes
1 answer
407 views

How to display user's avatar on the top of main menu in WordPress admin panel?

I got a requirement to update the WordPress's admin panel, where I need to display the current user's avatar on the top of admin's main menu(see the screenshot).
princeexpedition's user avatar
-1 votes
1 answer
413 views

list all authors outside of loop with photo from /uploads

I was successfully using this excellent contributors function to generate a list of the users on my site with gravatar photo.. UNTIL the client decided they don't want to use gravatar and would rather ...
jamie's user avatar
  • 127