Skip to:

bp_comment_author_avatar() not displaying fall-back default gravatar

  • I want to show large avatars (full 96px) for those who comment on blog posts. To do this, I had to create a custom version of the bp_comment_author_avatar function so full-sized images were used rather than 48px thumbnails. My version of the function is identical except that I added the following arguments to the bg_core_fetch_avatar(array)

    ‘type’ => ‘full’, ‘height’ => ’96’, ‘width’ => ’96’

    This works perfectly for any commenter that happens to be a member. But for some reason, if the commenter is not a member and does not have a gravatar account, nothing is returned. I looked at the bg_core_fetch_avatar() function and it appears it should produce a default gravatar in that case.

    If anyone has any insights into why this isn’t working, I’d appreciate the help. If necessary I can post my code.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bp_comment_author_avatar() not displaying fall-back default gravatar’ is closed to new replies.
Skip to toolbar