-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
33 lines (32 loc) · 911 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
<?php
/**
* The template for displaying archive pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package good-guitarist
*/
get_header(); ?>
<div class="">
<div class="row">
<div class="gutter-2">
<div id="primary" class="content-area">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php the_archive_description( '<div class="archive-description">', '</div>' ); ?>
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ): ?>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'views/content-archive', get_post_format() );
endwhile;
?>
<?php else : ?>
<?php get_template_part( 'views/content', 'none' ); ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .col- -->
</div><!-- .row -->
</div><!-- .container -->
<?php get_footer(); ?>