-
Notifications
You must be signed in to change notification settings - Fork 1
/
author-single.php
23 lines (17 loc) · 946 Bytes
/
author-single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
global $author;
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>
<div id="authorbox">
<div class="author-avatar">
<?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '50' ); }?>
</div>
<div class="author-info">
<strong><?php the_author_link() ?></strong> (<a href="<?php global $authordata; echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>"><?php the_author_posts(); _e(' posts');?></a>) <br />
<?php if(isset($curauth->description)){
echo '<div class="author-description">';
echo $curauth->description;
echo '</div>';
} ?>
Follow <?php the_author() ?> on <a href="<?php the_author_meta('facebook'); ?>" rel="nofollow" target="_blank">facebook</a> or <a href="<?php the_author_meta('twitter'); ?>" rel="nofollow" target="_blank">twitter</a>.
</div>
</div>