Hot answers tagged

1

Two notes: get_avatar() is a "pluggable" function. That means, that you can write a plugin to hold a new function named get_avatar(), which then will overwrite the original function used by WP. get_avatar() also has a filter return apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt ); that you can use to change the return value: ...


1

I'm afraid it's not possible to do it without any plugin. Author's image (gravatar) is not published in RSS, and it's computed based on author's e-mail address, which also is not published in RSS... But if you have control over both of these sites, then you could use JSON API/XML RPC to get the newest blog posts - then you could get all info from these ...


1

You're looking for the get_avatar function, documented here get_avatar( $id_or_email, $size, $default, $alt ) You'll need either a user ID, or an email to use it, something like this should do the trick: echo get_avatar( get_comment_author_email(), 'thumbnail' ); If avatars are turned off in settings, this function will not return anything


1

Gravatar by design doesn't require the downstream system to be aware if there is a match. The image (if any) is determined and served on request, only hash needs to be provided. It's impossible to "guess" from email or its hash if it has an avatar. That can only be resolved by request to the Gravatar. Basically to achieve this you will need to: query ...


1

1 Visit Gravatar website 2 Sign in to Gravatar with your WordPress.com account. If you don’t have a WordPress.com account then you need to create one. 3 Upload your avatar ( profile picture ). and you are done with it.


1

Answer get_avatar($comment, 50, vol_random_image(), '', array('extra_attr' => 'nopin="nopin"')); Explanation Take a look at the get_avatar function: echo get_avatar( $id_or_email, $size, $default, $alt, $args ); Looking at this function, you'll notice the last parameter allowed is $args, which essentially lets you alter all values aside from ...



Only top voted, non community-wiki answers of a minimum length are eligible