The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
34 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
0answers
20 views

Increase Comment Author Gravatar Size On WordPress Default Comment Function

I am new to WordPress theme development. I am designing a new theme and using less codes and file as I am starting from basic. I am adding comments and comment form in my single.php using <?php ...
3
votes
2answers
155 views

Custom Gravatar not working

I'm trying to upload a custom Gravatar to Wordpress, however something is breaking the image link and I'm not sure how to fix it. add_filter( 'avatar_defaults', 'new_default_avatar' ); function ...
1
vote
2answers
117 views

How do I add a custom HTML attribute to get_avatar?

I'm trying to add Pinterest's nopin="nopin" HTML attribute to the comment avatar image tags on my blog. Here's the function I'm using to call the avatar on each comment: get_avatar($comment, 50, ...
0
votes
1answer
49 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
146 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 ...
0
votes
2answers
89 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
1answer
94 views

How to change the gravatar image from front end?

How can user change the own gravatar image from front end? for the back-end there are lot of plugins (like user photo etc.), by which user can easily change the gravatar image?
0
votes
0answers
60 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
2answers
93 views

Show author name not the author ID

I have added the code to get the author, but it displays the author's ID number. How can I get the author's name to show and their gravatar. CODE <?php $product_pages_args = array( 'meta_key' ...
1
vote
2answers
173 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') . ...
0
votes
3answers
166 views

Which core file is responsible for gravatars?

I realize modifying the core files is frowned against but I strongly believe that the WP core SHOULD NOT rely on external links. In my situation, I'm behind the Great Chinese Firewall, the gravatar ...
1
vote
2answers
524 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
1answer
452 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
101 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
188 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
51 views

Fetching Gravatar

How can I fetch anyone’s gravatar image? I need to show users gravatar image on a custom profile page that am making. I have so far integrated the option of Facebook Profile Pic (which automatically ...
0
votes
3answers
446 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" ...
0
votes
1answer
92 views

Adding Gravatar to rss feed

So I have a mailchimp email that goes out and shows the latest posts that have been made on the site. The users on the site all have gravatars and I want to include that in the rss feed so that I can ...
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 ...
1
vote
2answers
107 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 ...
1
vote
1answer
128 views

Can I hook into get_avatar to supply a hash instead of an email?

I'm writing a plugin to PPK encrypt non-public comment data as a second line of defence against crackers (one of my sites was recently compromised, so I have been rather spurred into action!). To ...
1
vote
3answers
124 views

Add gravatar to author list

I am using this code for listing out all authors on the site in my sidebar. It works, except I also need to pull in their Gravatar image. It's working in a loop on the homepage with this <?php ...
0
votes
2answers
533 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
2k 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 ...
1
vote
2answers
662 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
786 views

Why are BuddyPress user avatars not displaying properly? [closed]

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 ...
1
vote
2answers
2k 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
1answer
129 views

Gravatar always shows default image

When I call the following code: echo get_avatar( get_the_author_meta('user_email'), '70', get_bloginfo('template_directory')."/images/default.png" ); It generates the following: ...
0
votes
2answers
338 views

Snippet for own (gr)avatars

Following snippet used(and works great) but generates a redirect chain :(. If (function_excists('basicgravatar') function basicgravatar ($avatar_defaults) { $myavatar = ...
0
votes
2answers
3k 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 ...
1
vote
1answer
83 views

Remove hovercard for only certian gravatars

I am using the Extended Gravatar plugin by Reza Moallemi and it works great. However, on my about page I have a large gravatar to show the author. I would like to know if there is a class I can add to ...
3
votes
2answers
239 views

I want to display author gravatar on posts. How to do this?

I just want to add author gravatar near the name of the author. I know that I have to add something in the single.php file, but what to add? Thanks!
-1
votes
1answer
638 views

Building Gravatar Code

I'm building Gravatar code for a theme for SEO reasons, basically don't like the default WordPress Gravatar code because for each avatar it adds an image to the page with no alt text which could have ...
0
votes
1answer
57 views

Gravatar Size Via Theme Functions?

Currently, to call comments I am simply using: <?php wp_list_comments(); ?> in comments.php. This is calling up gravatars, which I would like to be able to set the size of. How can I set ...
1
vote
3answers
830 views

get_user_meta Short Profile Section

Ok so i have added a custom field into the users edit profile page where they can add a link to a url of an image they want. I am currently using this for contribitors and above but i also have a ...
3
votes
4answers
777 views

If Else Gravatar Author Picture

Ok so i have added a custom field inside of the WordPress edit profile field where a contributor and above can add a custom image if they do not use gravatar. Now i am trying to write a if else ...
6
votes
2answers
5k views

Removing Gravatar.com support for WordPress and Simple Local Avatars

Currently I'm using Simple Local Avatars on several of my blogs allowing people to upload their own custom avatar. As far as I know Simple Local Avatars uses get_avatar to check whether a custom ...
0
votes
1answer
227 views

Default Gravatar not showing for pings

Here is my comments block: <div id="comments"> <?php if (have_comments()) : ?> <h3><?php printf(_n('1 comment', '%1$s comments', get_comments_number()), ...
1
vote
2answers
731 views

Alternative default avatar generator?

Most of the commenters at my WordPress blog do not have a Gravatar account. Hence the comment section is almost always filled with the same old mystery man avatars. I am looking for custom gravatar ...
3
votes
4answers
2k views

Upload gravatar in WP profile?

I'm interested in the theory of a user being able to register/upload a gravatar directly in their user account within a hosted WP system. Is this feasible?