WordPress gravatar / avatar bug: comment email instead of admin email

The following can happen:

  1. You make a site for a customer
  2. You insert some comments that your customer provides.
  3. Gravatar uses the admin email instead of the comment author email.

How do you get a gravatar image for the comment email instead of the author email?

You need to write a filter function. the get_avatar filter passes the img code as first param, and the id of the author(you) or an emailaddress as the second.

Continue reading “WordPress gravatar / avatar bug: comment email instead of admin email” »