[resolved] how to create link to author page (3 posts)

  1. geoffe
    Posted 10 years ago #

    I can't find the code that would link to the author of current post in the loop. I'm using permalinks and WP 2.0.1, if that's relevant to the solution.

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Do you have:
    Posted by <?php the_author(): ?>
    or similar in your loop ?

  3. geoffe
    Posted 10 years ago #

    No, what I'm after is to get a link with the user_nicename from the database. I notice that wp_list_authors() does links this way.

    Right now I'm using:

    a href= "<?php bloginfo('wpurl'); ?>/author/<?php the_author_login(); ?>"><?php the_author() ?>

    And that works, but the URLs would be cleaner if I used the nicename [the login names have spaces].

Topic Closed

This topic has been closed to new replies.

About this Topic