forked from bigfa/Coffin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
28 lines (28 loc) · 1.04 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
<?php get_header();
$authorId = get_query_var('author'); ?>
<header class="author-banner"></header>
<header class="author-header u-textAlignCenter">
<div class="layoutSingleColumn layoutSingleColumn--wide xs-layoutSingleColumn--wide">
<?php
echo get_avatar($authorId, 120);
echo '<h1 class="title">' . get_the_author_meta('display_name', $authorId) . '</h1>';
echo '<p>' . get_the_author_meta('description', $authorId) . '</p>';
?>
</div>
</header>
<div class="layoutSingleColumn--wide xs-layoutSingleColumn--wide">
<div class="sandraGroup">
<div class="sandraList u-clearfix">
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-part/post/content'); ?>
<?php endwhile; ?>
</div>
<?php the_posts_pagination(array(
'prev_text' => 'Previous page',
'next_text' => 'Next page',
'prev_next' => false,
'before_page_number' => '',
)); ?>
</div>
</div>
<?php get_footer(); ?>