Support » Fixing WordPress » How to link author to his profile page?

  • Hi,

    My theme’s index.php file has the following line to show the author:

    <small><?php the_time(‘F jS, Y’) ?> by <?php the_author() ?> </small>

    Which would show “March 24th, 2008 by Gene”.

    Is there a way to link Gene’s (or other authors) to his public profile (for registered members only) when clicked on?

    Thanks,
    Gene

Viewing 3 replies - 1 through 3 (of 3 total)
  • just wrap the link around the author code

    <small><?php the_time('F jS, Y') ?> by<a href=""><?php the_author() ?></a></small>

    Thanks,

    Did the above and it does show the author’s name as a link but when clicked on, only takes me back to the index page.

    Is there something missing in the href=”” (between the “)? And BTW, I copied the author template in my theme’s folder.

    Gene

    Also, once the solution is found, I assume the same code could be used in the comment.php file?

    Gene

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to link author to his profile page?’ is closed to new replies.