-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathauthor-admin.php
50 lines (47 loc) · 1.37 KB
/
author-admin.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
43
44
45
46
47
48
49
50
<?php get_header(); ?>
<body <?php body_class(); ?>>
<?php get_template_part("/template-parts/common/hero"); ?>
<div class="container">
<div class="authorsection authorpage">
<div class="row">
<div class="col-md-2 authorimage">
<?php
echo get_avatar( get_the_author_meta( "ID" ) );
?>
</div>
<div class="col-md-10">
<h4>
<?php echo strtoupper(get_the_author_meta( "display_name" )); ?>
</h4>
<p>
<?php echo get_the_author_meta( "description" ); ?>
</p>
</div>
</div>
</div>
</div>
<div class="posts text-center">
<?php
while ( have_posts() ) {
the_post();
?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></h2></a>
<?php
}
?>
<div class="container post-pagination">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-8">
<?php
the_posts_pagination( array(
"screen_reader_text" => ' ',
"prev_text" => "New Posts",
"next_text" => "Old Posts"
) );
?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>