An avatar is a graphical representation of a user

learn more… | top users | synonyms

3
votes
3answers
43 views

Custom user avatar in the Wordpress users listing

By default, Wordpress uses Gravatar for user avatars. I've created a custom field for avatar uploads, and I'm using this as users' avatars on various pages in the theme. In the admin - on the all ...
0
votes
0answers
33 views

Show avatar, alternative avatar, or blank avatar

On author.php, I am already using the following get_avatar code with fallback, to 1) show a user avatar or, 2) if none is present, show a generic avatar_default.png: <?php echo get_avatar($...
2
votes
0answers
48 views

Add aditional class to get_avatar when showing image

I want to add bootstrap img-responsive and img-rounded classes to avatar image when displaying one. But for some reason the class is not displayed when using get_avatar. By WordPress codex there is ...
0
votes
0answers
13 views

Use Custom Avatar in Comment

I'm newbie to Wordpress. i have create one application in cakephp and also blog for that application in Wordpress. I am using comman session for both site (i.e. For blog and main application). if user ...
1
vote
1answer
41 views

Getting the current author (it has changed) of a post, not the original author

I'm trying to get the author's avatar, first name and last name and their bio(description). Luckily I found out how to do do just that, using several functions from the WordPress codex. What I'm ...
1
vote
1answer
50 views

How to display user's avatar on their profile page?

I'm trying to figure out a simple way to display the user's avatar on their profile page. It seems like it would be a very simple thing to do, but I can't figure it out. Is get_avatar(); not the right ...
0
votes
1answer
524 views

Get only the author profile picture image url inside a loop

I need to get the post author profile picture link. I know I can use get_avatar(); but it displays whole image markup <img src="http://.../img.png" class="avatar img-responsive" alt="image"> ...
0
votes
1answer
71 views

Anyway of specifying avatar height & width?

I'm calling an avatar in a theme with get_currentuserinfo. The avatar appears at 96x96 pixel width & height. Changing that size is not problem. I made a custom function & shortcode to use it ...
0
votes
1answer
70 views

Give users alternative/second avatar that is rectangle sized

I am searching on and off for years. There are solutions so "crop" the avatar to rectangle. I want to have a second (alternative) avatar for my users to show on particular places on the site where ...
0
votes
2answers
73 views

Adding avatars/gravatar to a Wordpress blog

I am trying to add avatars to my wordpress web site and I activated them through the settings - discussion as you would normally do. But because I have a very customised theme, I guess, it is not ...
0
votes
1answer
45 views

How to get authors avatar

How do I get the authors avatar? Buddypress plugin or any plugin. I have found this inside my PHP code: "<i class="fa fa-user"></i><span>'.get_the_author().'</span></div&...
0
votes
0answers
184 views

front end avatar with plugin Basic User Avatars for custom template

I try make front end upload with my custom template profile in front end. But it don't work. Somebody pls help. i follow code from this topic to make a custom template How to edit a user profile on ...
0
votes
2answers
372 views

How do I get a post author's image/avatar via RSS from another blog?

I have 2 websites: one is a company website, the other is a blog for the company - these sites are on separate domains. On the homepage of the company website, there's a square tile featuring the ...
0
votes
2answers
42 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 ...
1
vote
0answers
110 views

Is it possible to add the user avatar & name in the header?

I have a WordPress multisite and setting it up for a specific use. I have setup my WordPress multisite so when a user registers, that user can only create one site and that user is the only ...
0
votes
2answers
69 views

Display Authors avatars when more than one author

On a blog, i'm using the following to display the post authors avatars: <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>" style="color:#ffffff;"><?php echo ...
0
votes
1answer
35 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!!
3
votes
1answer
158 views

Wrong gravatar showing up?

I've got an install that's loading the wrong gravatar and I can't figure out why. Most confusing is that it's doing it in the front-end templates AND in the admin. Here's a screen cap: The user and ...
0
votes
2answers
379 views

How to get all users that uploaded avatars or have gravatars? [closed]

Is there a way to get all users that: 1) uploaded an avatar or 2) have a Gravatar? I want to filter users that doesn't meet one of these conditions. UPDATE I forget to mention that this is for ...
0
votes
0answers
96 views

Possible to add author avatar to header so displays for all, not just registered/logged users?

I have a wordpress site and here is the page where I am trying to display the avatar & user name in the header, listmenow.com/default Is it possible to display the avatar & user name for the ...
3
votes
1answer
571 views

How to display random users with avatars

I adapted a little a function to display a number of random users with their avatars with a shortcode. It works, but something is not good. Sometimes it displays with one user less than I want (just a ...
0
votes
2answers
2k views

Display avatar of user profile when logged in

I am trying to display user's avatar/profile image when logged in, but when I use this: <?php global $current_user; get_currentuserinfo(); echo get_avatar( $current_user->ID, ...
0
votes
2answers
49 views

How do I pull avatar from post using BuddyPress? [closed]

I'd like to pull the avatar of a blog post's author and display it on the page using BuddyPress but I cannot seem to pull it off. How would I go about this?
0
votes
1answer
217 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){ $...
0
votes
1answer
39 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 ...
0
votes
1answer
380 views

Change avatar on themed profile page

I'm using the Theme My Login plugin and trying to allow subscribers to change their profiles to one uploaded from their computer. I've tried the following plugins: Simple Local Avatars ...
0
votes
1answer
89 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 ...
1
vote
2answers
508 views

custom default avatar showing broken link

I am using the follow function to create a custom default avatar for users who comment and do not have a gravatar setup. if(!function_exists('custom_avatar')){ function custom_avatar($...
1
vote
1answer
1k views

woocommerce allow users to select or use avatar

I am working on constructing a ecommerce site that is run by woocommerce and the free woo theme artificer. Standard with the plugins there is a my account page which allows you to put in basic ...
1
vote
3answers
439 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
164 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
117 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
107 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
160 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
452 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
219 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
757 views

Cannot get local avatars to show [closed]

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
2answers
213 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
1answer
791 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
134 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
122 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
415 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
901 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 fallback....
0
votes
1answer
414 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
150 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: http://www....
0
votes
2answers
664 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" alt="...
1
vote
1answer
622 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
866 views

How to update avatar in buddypress programmatically? [closed]

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.
1
vote
1answer
1k 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
238 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 ...