Support » Fixing WordPress » How to link author to his profile page?
8 years, 11 months ago
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?
just wrap the link around the author code
<small><?php the_time('F jS, Y') ?> by<a href=""><?php the_author() ?></a></small>
<small><?php the_time('F jS, Y') ?> by
<?php the_author() ?>
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.
Also, once the solution is found, I assume the same code could be used in the comment.php file?