Support » How-To and Troubleshooting » [Resolved] call author profile & name outside the Loop
10 years, 11 months ago
Can someone please advise if this post thread http://wordpress.org/support/topic/27554 was been resolved or amended?
I’ve followed the author template article in the codex files http://codex.wordpress.org/Author_Templates but the author names remains blank.
I’ve used it before the Loop, as directed to no avail. Has this been fixed or have I missed something entirely?
Only 1.5 code (used before the Loop)…
$curauth = get_userdatabylogin(get_query_var('author_name'));
$curauth = get_userdata(get_query_var('author'));
with the call code before the Loop…
<h3>You’re currently viewing <?php echo $curauth->user_firstname; ?> <?php echo $curauth->user_lastname; ?>‘s page of posts:</h3>
<?php echo $curauth->user_firstname; ?> <?php echo $curauth->user_lastname; ?>
Can someone help me on this please.