The user_url links to their website.
Here’s what I’ve got:
<li><strong>Profile:</strong> <a href="/author/<?php the_author_meta('display_name',1); ?>">Articles written by <?php the_author_meta('display_name',1); ?></a></li>
I used to have “first_name” but someone came in and used a nickname as their display name. I bascially want to do a author_link outside the loop but don’t know what the default tag is for what WP is looking for for the author link. It is not “first_name” and it is not “display_name”.
Edited to add: This is not an author template. This is a custom template, custom code, all outside the loop.
Do you mean a link to an author’s posts?
Yes, that’s exactly how I want this link to work. But since that has no parameters to indicate which author and can’t be used outside the loop – I need to know what wordpress is looking for in that function and use the right string from the author template tags that CAN be used outside the loop.
With the WordPress 2.8.4 core, using http://wingrep.com on the string “the_author_posts_link”, found that function uses get_author_posts_url.
- The topic ‘Which template tag pulls author profile?’ is closed to new replies.