Hot answers tagged

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 ...


1

Have a look at the Codex about "Using Gravatars". There you´ll find a part about "Checking for the Existence of a Gravatar" which works like this: The trick to do this is to specify "404" as the default. In this case, the gravatar service will return a 404 error if no gravatar exists, instead of returning some default image. A real image will get a 200 ...


1

Unless I have misunderstood your question to accomplish a custom gravatar to use in your theme add the code below to your functions.php or into a custom plugin. From there customize the title and the image you want to use. See screenshot below for the finished outcome. add_filter( 'avatar_defaults', 'dev_designs_gravatar' ); /** * Display a custom ...



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