-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
61 lines (42 loc) · 1.1 KB
/
archive.php
File metadata and controls
61 lines (42 loc) · 1.1 KB
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
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* The template for displaying archive pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage quick-start
* @since 1.0.0
* @version 1.0.0
*/
/**
* File Security Check.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header(); ?>
<main class="site-main" role="main">
<header class="page-header">
<h1 class="page-header__title">
<?php the_archive_title(); ?>
</h1>
<div class="page-header__taxonomy-description">
<?php the_archive_description(); ?>
</div>
</header>
<div class="content-area">
<?php if ( have_posts() ) : ?>
<div class="posts-wrapper" id="js-postsWrapper">
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/post/content', 'excerpt' );
endwhile; ?>
</div>
<?php Theme_Helper::render_post_pagination();
else :
get_template_part( 'template-parts/post/content', 'none' );
endif; ?>
</div>
</main>
<?php get_sidebar(); ?>
<?php get_footer();