WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Link to author in post (3 posts)

  1. silfver
    Member
    Posted 8 years ago #

    Hi.

    At the end of my posts I use this code:
    Written by <?php the_author() ?>

    But I want a link to the authors authorpage instead of clear text.

    How do I do?

  2. MichaelH
    Member
    Posted 8 years ago #

    Took this out of the Example from the Template Tag, the_author_ID:

    <a href="/blog/index.php?author=<?php the_author_ID(); ?>">View all posts by <?php the_author_nickname(); ?></a>

    Note: Change the /blog to your address.

    More info:
    Author_Templates

  3. silfver
    Member
    Posted 8 years ago #

    Much appreciated. Thanks man.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags