Title: Author to link
Last modified: August 18, 2016

---

# Author to link

 *  [tbonem](https://wordpress.org/support/users/tbonem/)
 * (@tbonem)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/author-to-link/)
 * Hi there. This issue must have been discussed sometime in the past but due to
   the huge amount of information I wasn’t able to find something suitable.
    So 
   far I managed to add a <?php the_author_posts_link(); ?> to my index.php so whenever
   someone clicks on it they get the total posts of the author in there. My question
   is … how do I make that whenever an author is clicked the user should be taken
   to their external website (so not a page inside the blog?).
 * Please bear in mind that I am relatively new to wordpress and php but it should
   not be that hard right ? :o)
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * (@adamrbrown)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/author-to-link/#post-646083)
 * [template tags](http://codex.wordpress.org/Template_Tags#Author_tags)
 * I think you’re looking for `the_author_url()` or `the_author_link()`
 *  Thread Starter [tbonem](https://wordpress.org/support/users/tbonem/)
 * (@tbonem)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/author-to-link/#post-646084)
 * Wow … that was fast… thanks … it was the_author_link()
    :o)
 *  [lizleih](https://wordpress.org/support/users/lizleih/)
 * (@lizleih)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/author-to-link/#post-646454)
 * I’m trying to do the same thing–have the author’s name be a link to their url(
   the one in the profile), but neither of these worked. “the_author_url()” made
   the url display instead of the author’s name, and it wasn’t a link. “the_author_link()”
   made everything disappear after the words “published by”. Any ideas out there?
 * Here’s the blog: [http://www.csdesignworks.com/blog/](http://www.csdesignworks.com/blog/)
   And unfortunately, we are only running WP 2.0.6 because that’s all our hosting
   company will support. Thanks!
 *  [lizleih](https://wordpress.org/support/users/lizleih/)
 * (@lizleih)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/author-to-link/#post-646455)
 * Nevermind–I found the solution:
    <?php if (get_the_author_url()) { ?>“><?php 
   the_author(); ?>
   <?php } else { the_author(); } ?>

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Author to link’ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [lizleih](https://wordpress.org/support/users/lizleih/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/author-to-link/#post-646455)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
