-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
47 lines (37 loc) · 1014 Bytes
/
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
44
45
46
47
<?php get_header(); ?>
<!-- Main Wrapper -->
<div id="main-wrapper">
<div class="wrapper style2">
<div class="inner">
<div class="container">
<div class="row">
<div class="col-12 col-12-medium">
<!-- Article list -->
<section class="box article-list">
<header class="major">
<?php the_archive_title( '<h2>', '</h2>' ) ?>
<?php the_archive_description( '<p>', '</p>' ) ?>
</header>
<!-- Excerpt -->
<?php
if ( have_posts() ) :
while (have_posts()) :
the_post();
get_template_part( 'template-parts/posts/content', get_post_format() );
endwhile;
/* Paginations */
the_posts_pagination( array(
'screen_reader_text' => ' '
) );
else:
get_template_part( 'template-parts/posts/content', 'none' );
endif;
?>
</section>
</div>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>