Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [avatar]

An avatar is a graphical representation of a user

0
votes
0answers
21 views

How to store BuddyPress user profile picture details is Database

I just try to make a forum with BuddyPress. Here I need to extend my user search based on who has a profile picture or not. So far I know BuddyPress does not store the avatar file name or path in the ...
0
votes
1answer
25 views

Inserting PHP before a menu element, while using the inbuilt menu function wp_nav_menu()

This is tricky to word so bear with me please. I have generated a wp_nav_menu, menu-1, as the main-menu. The menu is quite complex compared to a basic b**** one. Whereby you can show and hide parts ...
0
votes
1answer
39 views

Buddypress update user avatar image via REST

I’m creating a custom back-end API to update a user avatar image via user id. So i send via post REST request this parameters: – user_id : The id of the user; – image: base64 image; – image_name: ...
2
votes
2answers
181 views

How to replace any occurence of Gravatars with a local placeholder image?

Users can upload an avatar as a local image file on my website. If they didn't do so, it will fall back to the WordPress default (Gravatar). But I want any occurrence of Gravatar to be replaced with a ...
0
votes
0answers
39 views

Replace gravatar with user meta, by using filter

In this post, explains how to make my question. It filters user_avatar. I use same way with filtering user_avatar_url for using in <img src=""> Here is my code: function replaceAvatar( $url, $...
0
votes
1answer
24 views

Wordpress get_avatar filter to match logins

There is get_avatar filter to replace avatar for user with ID 1. It works as intended. https://codex.wordpress.org/Plugin_API/Filter_Reference/get_avatar But is it possible to match avatar for ...
1
vote
1answer
20 views

Displaying avatar of a user

I would like to display the avatar of a user. https://imgur.com/a/jiMn9ZD I want to do custom styling, such as the circled avatar. I have read there is code, and I am assuming this is the one I am ...
0
votes
0answers
21 views

Buddypress: Adding a frame in user profile avatars

I want to add frames to the avatars of the users depending on certain conditions, first of all where is the code snippet or loop that defines the div that contains the avatar image?, for example in ...
0
votes
1answer
37 views

How would I be able to use a font awesome icon as a user's avatar?

Would it be possible to use/allocate a font awesome icon as a user's avatar?
1
vote
1answer
69 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=...
0
votes
2answers
257 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 ));...
0
votes
2answers
44 views

Return WP avatar inside a function

I am trying to override a plugin's built in avatar with the default WP avatar. The plugin's filter is this: add_filter( "idea_push_change_user_image", "idea_push_change_user_image_callback", 10, 1 ); ...
0
votes
1answer
25 views

Custom Avatars for Wordpress Comments VIA Website URL?

I've tried a couple different wordpress plugins and solutions but nothing is quite what I'm looking for. I want to adjust my theme/wordpress so that avatars for my Wordpress commenters are grabbed ...
0
votes
2answers
66 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 ...
1
vote
0answers
21 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 ...
0
votes
0answers
19 views

Is it possible to replicate Buddypress' Change Avatar functionality in a custom page-template?

I need the user to be able to update his avatar from a custom page-template, before he's able to do something else. I was beginning to implement a simple media_handle_upload() form, when I realized ...
0
votes
0answers
39 views

Wordpress Yoast Seo open graph automatic 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 used wpseo_opengraph_image filter, but when i share the link for the first time ...
1
vote
0answers
156 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 ...
0
votes
0answers
24 views

BuddyPress - User avatars problem - PHP Warning: Could not create transliterator

I have problem with uploading and cropping user avatars. In php error logs there's a lot of this warning: PHP Warning: transliterator_transliterate(): Could not create transliterator with ID &...
0
votes
1answer
179 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 ...
0
votes
2answers
243 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 ...
2
votes
1answer
218 views

Changing default Buddypress avatar affects all site avatars (because gravatar)

I've been looking for a way to change the default Buddypress avatar for members, and have managed it, partially just using the simple Buddypress codex info here. BUT The codex info doesn't quite do ...
0
votes
1answer
44 views

Moving the WordPress dashboard avatar over the admin menu

Is there any documentation on moving the avatar image to the top of the menu area in the WordPress dashboard?
1
vote
1answer
429 views

How to restore $args for get_avatar custom “class”?

I'm aware that you can pass a custom CSS class name in to an avatar using... <?php echo get_avatar( $id_or_email, $size, $default, $alt, $args ); ?> Like... get_avatar( $current_user->...
-1
votes
1answer
149 views

get avatar from facebook graph [closed]

I use this plugin to get fb connect wordpress.org/plugins/nextend-facebook-connect/ the problem is I need to show avatar from FB graph that stored on database. when I use this plugin wordpress.org/...
3
votes
4answers
187 views

How to output nothing instead of default avatar?

I am looking for a solution to output nothing instead the default avatar when a user does not have any avatar. I am currently using this line. I looked at the function and the only thing I got so far ...
0
votes
1answer
25 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 ...
1
vote
1answer
672 views

The “Profile Picture” section just disappeared from my User Profile

The "Profile Picture" section just disappeared from my User Profile. How do I get it back? Thanks.
1
vote
1answer
346 views

Use Gravatar as fallback image if no local image is not found

I have been trying to use Gravator's Identicon as the fallback image, is there is no image for a given user in a predefined image folder. consider the following scenario; User email : asd@asd.com ...
3
votes
1answer
48 views

Replace comment avatars and links at the same time

I am trying to replace Wordpress comment author data: 1) Avatar (uploaded image instead of Gravatar) 2) Author link (link to author page as only members can comment) I have found a great solution ...
0
votes
1answer
435 views

How to set custom avatar for users?

I need to update custom image for users avatar on the time of registrations. I've using Pie-register plugin and it will allow upload profile picture but saving image url in user_meta and when try to ...
0
votes
1answer
70 views

Hexagon avatar with get_avatar()

I have the following code that fetches the avatar in WordPress <?php echo get_avatar(ThemexUser::$data['user']['ID'], 200); ?> and I would like to add the following clip-path into the avatar ...
0
votes
1answer
496 views

Avatar picture does not display when using get_avatar

I'm using WordPress with bbPress and Gravatar for user avatars. I want to display the user's avatar next to their topic. I'm using: echo get_avatar( get_the_author_meta( 'ID' ), 32 ); Which get's ...
0
votes
1answer
147 views

How to make current user's avatar + display name link to their profile?

I have searched and searched, but not finding a solution to my situation. I have a certain page where the user's avatar and display name are displayed. Currently these items are not clickable and do ...
0
votes
3answers
1k views

Wordpress User Gravatar images not displaying. Loading default instead

I'm trying to display user gravatars on this page http://gepc.themelot.com/survey-comparison/433747624/293281083/ but the page keeps showing the default 'mystery man' avatar. I inspected the page ...
3
votes
3answers
1k 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 ...
4
votes
2answers
7k 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 ...
1
vote
1answer
128 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
321 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 ...
1
vote
3answers
13k 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
689 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
138 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
154 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
338 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
2answers
1k 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
71 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 ...
0
votes
2answers
794 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
43 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
664 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
706 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 ...