[wp-testers] Avatars and 2.5

Dougal Campbell dougal at gunters.org
Mon Mar 17 21:00:04 GMT 2008


Mr. Awesome wrote:
> Aaron Harun wrote:
>>> Now I gotta go searching other themes or whatever for the code
>>>     
>>
>> Here is the code I'm using:
>>
>> `<?php if(function_exists('get_avatar')){ ?> <span
>> style="float:right"> <?php echo
>> get_avatar(get_comment_author_email(),25);?> </span> <?php } ?>`
>
> Thanks for this code Aaron, I'll start working on the comments.php 
> file soon here. =D

Of course, you could just use my Easy Gravatars plugin....

  http://wordpress.org/extend/plugins/easygravatars/

It will automatically use WP 2.5's get_avatar() function if available, 
or build its own image tag, if not.


-- 
Dougal Campbell <dougal at gunters.org>
http://dougal.gunters.org/



More information about the wp-testers mailing list