-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
46 lines (43 loc) · 1.13 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
43
44
45
46
<?php
/**
* The template for displaying Author Archive pages.
*
* @package Dsignfly
*/
get_header();
get_template_part( 'template-parts/features' );
?>
<main id="primary" class="site-main">
<div class="content">
<?php if ( have_posts() ) : ?>
<div class="category-title">
<h1>Author: <?php the_author(); ?></h1>
</div>
<?php
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'template-parts/content', 'card' ); ?>
<?php endwhile; ?>
<div class="pagination">
<?php
echo paginate_links(
array(
'next_text' => '<img src="' . get_template_directory_uri() . '/images/pagination-arrow.png" alt="arrow-right" />',
'prev_text' => '<img
style="transform: rotate(180deg);"
src="' . get_template_directory_uri() . '/images/pagination-arrow.png" alt="arrow-left" />',
)
);
?>
</div>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
</div>
<div class="sidebar">
<?php get_sidebar(); ?>
</div>
</main><!-- #main -->
<?php
get_footer();