-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
43 lines (35 loc) · 1.09 KB
/
archive.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
<?php
/*
This is the template for the archive page
@package sunsettheme
*/
?>
<?php get_header(); ?>
<div class="primaryContainer">
<main class="main" id="main" role="main">
<div class="postsContainer">
<?php
if(have_posts()):
?>
<header class="archiveHeader textCenter">
<?php the_archive_title('<h1 class="pageTitle">', '</h1>'); ?>
</header>
<?php
echo '<div class="pageLimit">';
while(have_posts()): the_post();
get_template_part('template-parts/content', get_post_format());
endwhile;
echo '</div>';
else:
echo '<h3>No posts to show.</h3>';
endif;
?>
</div>
<?php the_posts_pagination( array(
'prev_text' => 'Prev',
'next_text' => 'Next',
'screen_reader_text' => ' '
) ); ?>
</main>
</div>
<?php get_footer(); ?>