Forums

[resolved] Post avatar missing in P2 1.3.2 (3 posts)

  1. CleverMatt
    Member
    Posted 10 months ago #

    I just upgraded P2 to 1.3.2 and noticed some whitespace to the left of the post box.

    http://img705.imageshack.us/img705/111/p2test.png

    Scanning the code, it looks like the poster's avatar belongs in that area. From post-form.php at line 40:

    <div class="avatar">
        <?php get_avatar( get_current_user_id(), 48 ); ?>
    </div>

    However, the page HTML doesn't include the avatar code:

    <div class="avatar">
        </div>

    I'm using WordPress 3.2.1 with P2 1.3.2 and see this with a vanilla install. Any ideas?

  2. Lance Willett
    Theme Wrangler
    Posted 10 months ago #

    Hi CleverMatt,
    Good eyes -- that code is missing an "echo" statement. Just add it before the get_avatar() call and it will fix things up.

  3. CleverMatt
    Member
    Posted 10 months ago #

    Thanks, worked like a charm!

Reply

You must log in to post.

About this Topic

Tags