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
template tags
I think you're looking for the_author_url() or the_author_link()
Wow ... that was fast... thanks ... it was the_author_link()
:o)
LizLeih
Member
Posted 3 years ago #
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/ And unfortunately, we are only running WP 2.0.6 because that's all our hosting company will support. Thanks!
LizLeih
Member
Posted 3 years ago #
Nevermind--I found the solution:
<?php if (get_the_author_url()) { ?>"><?php the_author(); ?><?php } else { the_author(); } ?>