3 * The template for displaying archive pages
5 * Used to display archive-type pages if nothing more specific matches a query.
6 * For example, puts together date-based pages if no date.php file exists.
8 * If you'd like to further customize these archive views, you may create a
9 * new template file for each one. For example, tag.php (Tag archives),
10 * category.php (Category archives), author.php (Author archives), etc.
12 * @link https://codex.wordpress.org/Template_Hierarchy
15 * @subpackage Twenty_Sixteen
16 * @since Twenty Sixteen 1.0
21 <div id="primary" class="content-area">
22 <main id="main" class="site-main" role="main">
24 <?php if ( have_posts() ) : ?>
26 <header class="page-header">
28 the_archive_title( '<h1 class="page-title">', '</h1>' );
29 the_archive_description( '<div class="taxonomy-description">', '</div>' );
31 </header><!-- .page-header -->
35 while ( have_posts() ) : the_post();
38 * Include the Post-Format-specific template for the content.
39 * If you want to override this in a child theme, then include a file
40 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
42 get_template_part( 'template-parts/content', get_post_format() );
47 // Previous/next page navigation.
48 the_posts_pagination( array(
49 'prev_text' => __( 'Previous page', 'twentysixteen' ),
50 'next_text' => __( 'Next page', 'twentysixteen' ),
51 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
54 // If no content, include the "No posts found" template.
56 get_template_part( 'template-parts/content', 'none' );
61 </main><!-- .site-main -->
62 </div><!-- .content-area -->
64 <?php get_sidebar(); ?>
65 <?php get_footer(); ?>