在进行站点开发过程中,由于需要添加自定义的CSS class以及一些其他的代码,因此默认的获取头像的办法并不一定适用,所以我们需要直接输出头像地址的办法
PHP">function themetuts_gravatar_url() {
$user_email = get_the_author_Meta( 'user_email' );
$user_gravatar_url = 'http://www.gravatar.com/avatar/' . md5($user_email) . '?s=50';
echo $user_gravatar_url; }
PHP"> ?>)
就这么简单哈