Make clickable to author page link (3 posts)

  1. passegua
    Posted 3 years ago #

    I understand that:

    <?php the_author() ?>

    shows the author's name.

    I'd like to make this name linked to the author's page, or even better to author profile.

    I mean that if I click on author's name I will go to author's profile. (BTW I've read that profile information are publicly available but where?)

    This is also necessary to permit Google to show my thumbsnail image besides my article.

    Many thanks.

  2. Andrew Bartel
    Posted 3 years ago #

    I think what you're probably looking for is the_author_posts_link().

    So in your example:

    <a href="<?php the_author_posts_link(); ?>"><?php the_author(); ?></a>
  3. Andrew Bartel
    Posted 3 years ago #

    Also, not sure what theme you're using, but author profiles don't exist by default, you'd need to create an author.php, which your theme may already have.

    This codex page explains it: http://codex.wordpress.org/Author_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic