• Resolved beanz7890

    (@beanz7890)


    I would like to change the way avatars are displayed using this plugin, are you able to advise as to where I would start?

    Rather than display the standard WP avatar or gravatar, I would like to display a custom one. I currently do this in my author.php file with the following:

    <?php
    $userID = get_the_author_meta('ID');
    $user = get_userdata( $userID );
    $displayName = $user->adi_displayname;
    $photoURL = $user->adt_user_photo_url;
    ?>
    <img src="<?php echo $photoURL?>" title="Profile photograph for <?php echo $displayName?>" alt="Profile photograph for <?php echo $displayName?>"></img>

    Where would I put this in your plugin?

    Thanks very much.

    http://wordpress.org/extend/plugins/amr-users/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Avatar Output’ is closed to new replies.