-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
42 lines (33 loc) · 1.06 KB
/
author.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php get_header(); ?>
<div class="main">
<div class="container">
<div class="content">
<?php
/* Queue the first post, that way we know who
* the author is when we try to get their name,
* URL, description, avatar, etc.
*/
if ( have_posts() )
the_post();
?>
<h1>Author Archives:
<a class="name" href="<?php echo get_author_posts_url( get_the_author_meta('ID') ); ?>">
<?php the_author(); ?>
</a>
</h1>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta('description') ) : ?>
<h2>About <?php the_author(); ?> </h2>
<?php echo get_avatar( get_the_author_meta('user_email'), 60); ?>
<?php the_author_meta('description'); ?>
<?php endif; ?>
<?php
rewind_posts();
get_template_part('loop', 'author');
?>
</div> <!-- /.content -->
<?php get_sidebar(); ?>
</div> <!-- /.container -->
</div> <!-- /.main -->
<?php get_footer(); ?>