• Resolved campbelson

    (@campbelson)


    Hello!

    I’m using the chocolate-lite theme and would like to display the gravatars next to the recent comments featured in the side bar. Here is the piece of code associated with the display of recent comments so far:
    http://pastebin.com/BAPqJZDT

    There is a problem with it. I have only one comment on one post using a gravatar. When on that post, all recent comments feature that gravatar. When another post (or home page etc), all comments display the defaut wordpress avatar, even that only comment using a gravatar.

    Hope you understand what I mean,

    Thanks for your help,
    Michael

Viewing 1 replies (of 1 total)
  • Thread Starter campbelson

    (@campbelson)

    My mistake, I ommited “rc_” before comment. So this is the line of code, IF USING CHOCOLATE-LITE THEME for displaying the avatar or gravatar related to a comment:

    <?php echo get_avatar( $rc_comment->comment_author_email, $img_w); ?>

    If using another theme, just change the variable comment (here $rc_comment) to the one you have working on your script.

Viewing 1 replies (of 1 total)

The topic ‘Display avatars with recent comments?’ is closed to new replies.