WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] how to create link to author page

[Resolved] how to create link to author page

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark (podz)

    @podz

    Support Maven

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

    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].

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] how to create link to author page’ is closed to new replies.