Author Template – “$curauth” Issues
-
I think I’ve followed the directions on the author template page pretty well, but no matter what version of the “$curath” variable code I use, I can’t get the author’s name displayed.
https://www.maniacfan.com/author/flounder/
The author text is just above where the posts are displayed, but is missing both the Author name and description.
I am using wp 2.0, and the code I have in the page is as follows:
<?php
if(isset($_GET[‘author_name’])) :
$curauth = get_userdatabylogin($_GET[‘author_name’]);
else :
$curauth = get_userdata($_GET[‘author’]);
endif;
?><center><span class=”red”><b>Want to know more about <?php the_author() ?>?</span> Well, here it is, right out of his own pie-hole:</b></center>
<br>
<dd><?php echo $curauth->user_description; ?></dd>Thanks for your help.
- The topic ‘Author Template – “$curauth” Issues’ is closed to new replies.