Having A Bio On My Author Page?

Discussion in 'Blogging' started by Dean_Saliba, Oct 5, 2008.

  1. #1
    I would like to have a page for each author on my football blog.

    I found a code on here that makes the link url show up as http://www.footballreloaded.com/author/admin/ (this would be my page) but it just shows the posts I have posted.

    Is there something I can do to actually have a bio show up? (Preferably the one I added in the User section on the admin panel)
     
    Dean_Saliba, Oct 5, 2008 IP
  2. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #2
    Sure! All you need to do is edit your template.

    Simply open author.php and add the following codeat the very top right after <?php get_header(); ?>

    <?php 
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name); // NOTE: 2.0 bug requires get_userdatabylogin(get_the_author_login());
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>
    Code (markup):
    Then insert the following code where you want your bio to be displayed.

    <?php echo $curauth->description; ?>
    Code (markup):
     
    craiger22, Oct 5, 2008 IP