-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.php
38 lines (35 loc) · 864 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
<?php get_header(); ?>
<main class="main main-archive">
<section class="section">
<div class="section-inner">
<div class="section-archives-title">
<?php get_template_part( 'template-parts/archive-title' ); ?>
</div>
<div class="section-content">
<?php if ( have_posts() ) : ?>
<div class="articles">
<?php
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'template-parts/articles-normal' ); ?>
<?php endwhile; ?>
</div>
<?php
the_posts_pagination(
array(
'format' => '/page/%#%',
'prev_text' => '<',
'next_text' => '>',
)
);
?>
<?php else : ?>
<?php get_template_part( 'template-parts/articles-none' ); ?>
<?php endif; ?>
</div>
</div>
</section>
</main>
<?php // get_sidebar(); ?>
<?php get_footer(); ?>