An avatar is a graphical representation of a user

learn more… | top users | synonyms

1
vote
3answers
46 views

Rectangle avatars

I'm using get_avatar() to output images of my users. Ref: https://codex.wordpress.org/Function_Reference/get_avatar The optional size parameter lets me specify a size. However, this makes a square ...
0
votes
2answers
62 views

Which Function Displays The Post Authors Gravatar

I am using: echo get_avatar(get_the_author_id(), 30); Which works, however i am getting this notice to use: echo get_avatar(get_the_author_meta(), 30); Which doesn't display the authors Gravatar ...
0
votes
2answers
18 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 ...
0
votes
0answers
18 views

Echo User Avatar from Mainsite in Multisite subsite

Users can register and set a custom avatar on my multisite mainsite (example.com). I also have two subsites with subdomain set up - for example: xy.example.com On my main site I echo the user avatar ...
0
votes
0answers
43 views

get_avatar() returns false, use with JSON-API

I have JSON-API installed and I'm using a custom controller to get all users with the role 'editor'. I also have WP-User-Avatar installed so the editors can upload their own images instead of using ...
0
votes
0answers
43 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() { ...
0
votes
1answer
20 views

How can I display other user avatars on an author profile page?

I have an author profile page where I'm displaying a user avatar and information about the author. On this same page, I'm also trying to include posts by other authors with their avatar displayed next ...
1
vote
2answers
93 views

Use local image for default avatar

I tried putting this snippet in my functions.php add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . ...
1
vote
1answer
75 views

upload or auto setup feature photo by user avatar

I want user avatar image is set as a feature image, If there is no featured image. I am trying to do like this. function auto_featured_image() { global $post; if (!has_post_thumbnail($post->ID)) ...
1
vote
2answers
328 views

Cannot get local avatars to show

See updates below. I upgraded to 3.7.1 using svn. I did this on my localhost first to make sure everything is fine. Everything was, so I proceeded to do it on the server. However, on the server, the ...
0
votes
0answers
23 views

Croppping tool for wordpress avatar upload

Does anyone know of a method that lets the users upload and image and use a basic cropping/selection tool to create their author thumbnail? I have searched for wordpress oriented cropping ...
0
votes
1answer
79 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( ...
0
votes
0answers
66 views

Upload Custom Avatar through Buddypress

Using buddypress I don't see an option in the custom fields for uploading a custom avatar and it doesn't show up on my signup form. Is there a way to add that?
0
votes
1answer
282 views

Change the “Default Avatar” admin option via functions.php

So I'm trying to add a new default avatar for my theme using the following code: add_filter( 'avatar_defaults', 'mytheme_default_avatar' ); function mytheme_default_avatar ( $avatar_defaults ) { ...
0
votes
1answer
78 views

Simple Local Avatar Plugin

I think that Im very close to achieve my goal.. I have this function on my themes but I need a help to find the right way to call simple local avatar function so it will show the local avatar image ...
0
votes
1answer
63 views

Author Avatar as default first image

I need little bit help and customization on my existng script at function.php for wordpress 3.5. Here's what I have. As you can see here the default picture is none exist will be using $first_img = ...
0
votes
0answers
88 views

Buddypress avatars problem after cropping

After installing Buddypress on my wordpress theme, I realized I can't set my profile photo within bp. I can upload the image, but when I try to crop and press the button it throws an error message ...
0
votes
0answers
181 views

Output thumbnail for current DJ using Radio Station Plugin

So I've installed the "Radio Station" to my Wordpress installation. All seems fine with that. There's a widget included with this plugin that is meant to display "On Air" information about the ...
0
votes
2answers
367 views

How to use author's avatar as Facebook post preview image when a single post is shared

I want to use the post author's avatar if available as the post preview image for Facebook shared posts. If that is not available next would be a featured image and then a default image as a ...
0
votes
1answer
126 views

get_avatar won't show uploaded avatar, only default gravatar

I'm using the Simple Local Avatars plugin so my bbPress forumgoers can upload their own avatars. Now, when a user logs in, I want his/her avatar to display next to the relevant links (i.e. logout, ...
0
votes
1answer
114 views

Inline-Table under TwentyTwelve not working

I recently wanted to add a comfortable way to automatically add users to a page within small boxes including information an an image. So I followed this tutorial an customized the code: ...
0
votes
3answers
316 views

Gravatar - Default IMG

Gravatar is slowing my website and I want to host mystery man on my main server. So this is my normal gravatar mystery man <img class="avatar avatar-68 avatar-default" width="68" height="68" ...
1
vote
1answer
269 views

Random Default Avatar Function

UPDATE! After a little help from the wordpress.org forums, I made some progress with this code: // Custom Default Avatar if ( !function_exists('fb_addgravatar') ) { function fb_addgravatar( ...
0
votes
1answer
273 views

How to update avatar in buddypress programmatically?

How to update avatar in buddypress programmatically? I have a script, which gets the image url and I want to update the url in the database, so that that image will will be avatar of the user.
0
votes
1answer
808 views

get_avatar() default image not working as of wp 3.5 [closed]

As of upgrading to wp 3.5 the get_avatar function started not pulling in my default backup image. This has worked for many years this way and curious to why it would stop. I am using the normal use of ...
0
votes
1answer
136 views

Custom avatars in wordpress comments?

I'm looking for a way to let people connect with facebook when posting comments, and to use their facebook avatars as the avatar for the comments. How can this be done? Do I need to create a seperate ...
-1
votes
1answer
170 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 ...
1
vote
2answers
95 views

Force users to display default Gravatars

Is it possible for a WordPress site to display the users default Gravatar image (of chosen set, eg Retro, Identicon, etc), rather than the users uploaded avatar? As in, all user avatars next to ...
0
votes
1answer
218 views

Subsite theme mystery man replacement with Buddypress on main site

I have a multi-site install with buddypress on the main site. In the buddypress theme I've been able to override the default 'mystery-man' avatar using my custom buddypress theme. I simply have an ...
5
votes
3answers
430 views

Set default avatar network-wide

I've seen plugins and snippets on how to set a new default avatar for a site. I'm wondering if this can be done network-wide, such that every new site on the network will have the network's avatar as ...
0
votes
2answers
482 views

Broken Gravatar images in comments

I have no idea why, but recently, all new comments on my WordPress site have broken avatar image links. Here is a page that shows the issue: ...
2
votes
3answers
1k views

Setting different width and height for gravatar

I've been trying to set a different width and height using the get_avatar function. I need to set the author's avatar in single.php to 60x40 size. So let's say the gravatar looks like this: when ...
0
votes
1answer
229 views

Change the avatar ratio in bbPress login widget

I am using bbPress on my site and have (bbPress) Login Widget on my sidebar. Is there a way to change the default image size from 40 to 80 or other number? here is the code from the core files: ...
2
votes
2answers
194 views

Using Heroku, need to have non-gravatar avatars, but not stored locally

So, I am new to PHP, so I'm hoping to do this with a plugin, if possible. We are hosting on Heroku, this means uploading a local image to /uploads isn't going to work for this. We need to be able to ...
0
votes
2answers
501 views

Replace default avatar

I've searched google quite a bit and every site has the same filter but it doesn't seem to be working for me. Not sure if it's my setup or just old code. I'm trying this: add_filter( ...
1
vote
0answers
671 views

Why are BuddyPress user avatars not displaying properly?

I have a BuddyPress 1.6.x installation on WordPress 3.4.2. User avatars are not displaying in the following situations. On pages like: www.domain.com/members/USERNAME/profile/edit/group/1/ Here is ...
0
votes
1answer
167 views

show author avatar

I have modified the loop.php file to add some comment stuff in. I wanted to show a comment off a link which is working just fine. Now I went to make that comment show more detail by putting the author ...
0
votes
1answer
58 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: ...
1
vote
2answers
1k views

get the avatar url instead of an html img tag when using get_avatar?

i want to get the user avatar URL to use it as background URL style for a div. i tried to use the following but it does not return anything when i view the code it appears like that. background: ...
0
votes
2answers
243 views

Display “a generated one [avatar] based on their e-mail address”

I was looking at the discussion settings in WordPress and near the "Default Avatar" option I saw that it said the following: For users without a custom avatar of their own, you can either display ...
1
vote
2answers
670 views

Social Media's Avatar not working (Wordpress Social Login plugin)

I am using Wordpress Social Plugin. The problem is that social media's avatar is not showing. Here is my comment avatar code: <?php echo get_avatar(get_current_user_id(),30); ?> I found ...
5
votes
3answers
8k views

How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?

I'm using a plugin called Simple Local Avatars which lets me upload author images which are stored on my server locally (no Gravatar). The plugin works fine and get_avatar returns the local avatar. ...
4
votes
1answer
324 views

What should I do to make generated avatars different for anonymous comments?

All the comments on my website are anonymous and without registration. To post a comment you have to fill the fields name (not obligatorily) and the text of your comment (obligatorily). I have the ...
2
votes
1answer
152 views

How to remove unused avatar uploads in buddypress

Im seeing in my wp-content/uploads/avatars folder that there are tons of avatars from when I created test users, but changed the avatars. So, i’m assuming that even if the user changes their avatar, ...
2
votes
2answers
2k views

How to filter get_avatar?

I want to use local avatar system for my wp website , I want to filter the get_avatar() function so it will return the avatar from my server instead of the default gavatar . I have the following code ...
0
votes
1answer
288 views

get_avatar not working

I'm working on a plugin for showing users via shortcode by their role (in this site's case - authors). I'm getting a list of user objects using a WP_User_Query statement, then creating the output for ...
0
votes
2answers
677 views

How to set the default avatar of buddypress avatar

I need a way to set the default avatar for buddypress's bp_core_fetch_avatar. Using the regular get_avatar you can just set the $default path but I can't find anyway to do it with buddypress's ...
0
votes
1answer
443 views

How do you remove the buddypress group avatar from the activity stream post?

When a member post to a group it shows up in the activity feed under “username posted an update in the group” then its followed by the group avatar then the group name. So I was wonder how I could ...
2
votes
1answer
1k views

How to override Member's Avatars in BuddyPress

I have tried everything to override the BP Avatar. Found about 5-6 different Google results that basically all point to the same solution: function override_bp_member_avatar($url) { return ...
0
votes
2answers
2k views

How to get gravatar url alone

I would like to use gravatar image as background image for a button. When i use get_avatar function it returns with height width src parameters. But i need only gravatar url. I mean like ...