Revision: 23924
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 16, 2010 16:00 by vagrantradio
Initial Code
//place this in your functions.php file <?php add_filter('avatar_defaults', 'newgravatar'); function newgravatar ($avatar_defaults) {$myavatar = get_bloginfo('template_directory') . '/images/default_gravatar.png'; $avatar_defaults[$myavatar] = "yournamehere"; return $avatar_defaults;} ?> //add this where you want your gravatar, notice the default url "<pathtourl>" removed <?php echo get_avatar($comment,$size='48',$default='' ); ?></div>
Initial URL
Initial Description
Gives you the option to select a custom gravatar in the Wordpress discussion setting in admin dashboard
Initial Title
WORDPRESS CUSTOM DEFAULT GRAVATAR
Initial Tags
wordpress
Initial Language
PHP