WordPress.org

Ready to get started?Download WordPress

Forums

Gravatar in 2.5 (5 posts)

  1. polle001
    Member
    Posted 6 years ago #

    I have Gravatar plugin 1.1 using the following code in my theme.

    <img src="<?php gravatar("R", 32, "path/images/gravatar.png"); ?>" alt="Gravatar de <?php comment_author(); ?>" title="Gravatar de <?php comment_author(); ?>" />

    Everything works fine, but now that Gravatar is included in WordPress 2.5 how do I need to modify my code so I can delete the plugin ?

    Thanks.

  2. polle001
    Member
    Posted 6 years ago #

    Well, I changed the code for:

    <?php echo get_avatar( $comment, "R", 32 ); ?>

    and worked fine.

    Maybe is helpful for someone.

  3. RaulTBC
    Member
    Posted 6 years ago #

    So, specifically, where do I place this function within the comment loop of the theme? Also I assume that I don't need the plugin since it's built into WP2.5?

  4. RaulTBC
    Member
    Posted 6 years ago #

    Never mind ...

  5. detoam
    Member
    Posted 6 years ago #

    I can't get it to work actually. It simply shows the Gravatar's icon.
    Help please.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags