1 Add author info in author page 22nd January 2010, 3:07 pm
SkipSoft
MITR New User
Do you want to know how to add author profile in wordpress’s author page? You must create author folder in template folder and upload author display name .png images in author folder. It’s easy way, simply paste the following function into your author.php file.
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
Then, you can past following code where you want show author profile in wordpress author page.
Author Image
<img src=”<?php bloginfo(‘template_url’); ?>/author/<?php echo $curauth->nickname; ?>.png” align=”right”/>
Author Name
<?php echo $curauth->display_name; ?>
Author Email
<?php echo $curauth->user_email; ?>
Author Web
<?php echo $curauth->user_url; ?>
Author Post Count
<?php echo the_author_posts(); ?>
Author Bio Info
<?php { ?>
<?php echo $curauth->description; ?>
<?php } ?>
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
Then, you can past following code where you want show author profile in wordpress author page.
Author Image
<img src=”<?php bloginfo(‘template_url’); ?>/author/<?php echo $curauth->nickname; ?>.png” align=”right”/>
Author Name
<?php echo $curauth->display_name; ?>
Author Email
<?php echo $curauth->user_email; ?>
Author Web
<?php echo $curauth->user_url; ?>
Author Post Count
<?php echo the_author_posts(); ?>
Author Bio Info
<?php { ?>
<?php echo $curauth->description; ?>
<?php } ?>