The MU forums have moved to WordPress.org

P2 Theme: admin avatar shows in post-form instead of current user (1 post)

  1. ebellempire
    Member
    Posted 14 years ago #

    Hi,

    I'm using P2 for a subdomain site with multiple users and I noticed that the admin avatar appears in the post entry form even if the current logged-in user is not the admin. The name displayed, however, is correct.

    I see that the template uses a theme-specific function...

    <?php p2_user_avatar( 'size=48' ) ?>

    I tried to override it using this, but to no avail...

    <?php echo get_avatar( get_the_author_meta( 'user_email' ), '48' ); ?>

    I'm assuming the problem is in post-form.php since after posting, the avatar in the published post is for the correct user.

    Any guesses and/or help would be appreciated. - E

About this Topic

  • Started 14 years ago by ebellempire