Alternative to using get_avatar function?

I used a WP hack for displaying author’s pics. For example, my single.php has an author slug which displays the author’s pic. I created a folder called authors in my theme/images folder. Based on the author’s ID, I name the file 1.jpg, 2.jpg and so on. So I call this image as <img src=”https://wordpress.stackexchange.com/questions/22728/<?php bloginfo(“template_directory’) … Read more

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 avatar is selected, if not defaults to Gravatar.com. Would it be possible to disable the Gravatar.com bit somehow, disabling Gravatar.com completely … Read more

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. However, I need to use that avatar in different ways and different places and for that I need the local avatar image … Read more