Myanmar IT Resource Forum
Myanmar IT Resource Forum
Myanmar IT Resource Forum

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Add author info in author page Empty Add author info in author page 22nd January 2010, 3:07 pm

SkipSoft

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 } ?>

2Add author info in author page Empty Re: Add author info in author page 22nd January 2010, 5:47 pm

C0D3R

C0D3R
MITR Master



MITR Master
အင်းကြည့်ရတာတော်တော်အသုံးဝင်မယ့်ဟာပဲ့

ဒါပေမယ့်ကျွန်တော် php မလေ့လာသေးတော့နားမလည်ဘူးဗျာ

နောက်တော့လေ့လာဖြစ်မယ် အဲဒီအခါဆိုရင်တော့အသုံးဝင်ပြီ :greatl



Last edited by ET on 13th August 2011, 1:50 pm; edited 1 time in total (Reason for editing : Add author info in author page)

http://www.myanmaritresource.info

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

 

Free forum | ©phpBB | Free forum support | Report an abuse | Cookies | Forumotion.com