• I’m trying to get an author profile working for a level 9 author, and for some reason the user data doesn’t show up. The other author profiles work (theirs’ are around level 1-3), but for some reason the admin and level 9 authors aren’t getting profiles working. This is the way I have it coded (the key part):


    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata($author);
    endif;
    ?>

    <h2><?php echo $curauth->user_firstname; ?> <?php echo $curauth->user_lastname; ?></h2>

    <dl id="author-info">
    <dt>Nickname (or a.k.a.)</dt>
    <dd><?php echo $curauth->user_nickname; ?></dd>

    <dt>Email</dt>
    <dd><a href="mailto:<?php echo $curauth->user_email; ?>"><?php echo $curauth->user_email; ?></a></dd>

    <dt>Website</dt>
    <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>

    <dt>AIM Screen Name</dt>
    <dd><a href="aim:goim?screenname=<?php echo $curauth->user_aim; ?>&message=hi"><?php echo $curauth->user_aim; ?></a></dd>

    <dt>Profile/Bio</dt>
    <dd><?php echo $curauth->user_description; ?></dd>

    <!-- <dt>Total Posts Posted</dt>
    <dd><?php // the_author_posts(); ?></dd> -->
    </dl>

    A couple example profiles that are working:
    https://plainculture.com/archives/author/lukefrutig/
    https://plainculture.com/archives/author/daysdifference/

    And these are the profiles that aren’t working:
    https://plainculture.com/archives/author/jon-the-jester/ (<< level 9 author)
    https://plainculture.com/archives/author/plainculture-sniper-admin/ (<< admin account)

    If anyone could help me on this, I’d definitely appreciate it. ??

    Using last night’s nightly WP, for the record.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author profile problem’ is closed to new replies.