WordPress.org

Forums

WP User Avatar
[resolved] Avatar in Comments (5 posts)

  1. WiSch
    Member
    Posted 2 years ago #

    Hi.
    I got now my own avatar on every comment to the articles I wrote.
    Using TwentyTwelve-Theme.
    Any suggestions?

    Thanks,
    WiSch

    http://wordpress.org/extend/plugins/wp-user-avatar/

  2. Bangbay Siboliban
    Member
    Posted 2 years ago #

    HI WiSch,

    Are you using the latest version of the plugin (1.2.3)? Also, could you share with me the site domain so I can visually see the problem?

  3. WiSch
    Member
    Posted 2 years ago #

    Hi.
    Yes, it is v1.2.3
    You can see my problem here.
    Thanks for your fast support!

    I used the following code
    Original: echo get_avatar( $comment, 44 );
    Now: echo get_wp_user_avatar( get_the_author_meta('ID'), 70 );
    Because with $comment always the default avatar comes for all comments.

  4. WiSch
    Member
    Posted 2 years ago #

    Hello again.
    I don't know what happend, but I tried again the original code from twentytwelve: get_avatar( $comment, 44 )
    And now it works!

    Sorry for that but thanks again for your fast reply!

  5. Bangbay Siboliban
    Member
    Posted 2 years ago #

    Hi WiSch,

    That's actually the suggestion I was going to make! If for some reason the comments avatar doesn't have the $comment variable, it will show the avatar of the post author. But, I may put in a patch to detect the comment author automatically if that variable is missing.

    Thanks for using my plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP User Avatar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.