• Hello everyone,

    I am trying to get gravatar working on my website, so that any users posting comments who have a gravatar associated with their email address, will have their picture posted along with their comment.

    I have downloaded the gravatar plugin for wordpress, from this site and installed it successfully.
    http://site.gravatar.com/site/implement#section_2_2

    In the implementation section it gives examples of HTML to add in order to use the plugin… But I’m not sure -where- this code is supposed to be added.

    The code to be added seems to be something like this.

    <?php gravatar("R", 40); ?>

    So, I would like to show the gravatar image for each poster, near their comment, assuming they have a gravatar registered.

    Where would I insert the above code to get that done?

    I assume it should go in the code which controls the comment output… But I’m not sure where that is.

    Thanks for any help on this! I’m a little lost.

    – Harvey

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Harvey

    (@harvey)

    Hey look what I found.

    http://codex.wordpress.org/Using_Gravatars

    Still not exactly getting it though. I am using the ‘pool’ theme.

    I’m looking in comments.php, and trying to find code similar to…

    <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    <cite><?php comment_author_link() ?></cite> Says:

    As mentioned in the codex…

    No luck yet. If I get it, will post the answer and close for future reference 😉

    Thread Starter Harvey

    (@harvey)

    I ended up insterting the gravatar code just before the line that looks like this in the POOL theme.

    <li id="comment-<?php comment_ID() ?>" class="<?php echo $bg_comment; ?>">

    Hope this helps someone some day!

    Thanks Harvey for documenting you process of getting the Gravatar plugin working. You saved me some time and I appreciate it. Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gravatar Implementation Help’ is closed to new replies.