3 * The template for displaying archive pages
5 * @link https://codex.wordpress.org/Template_Hierarchy
8 * @subpackage Twenty_Seventeen
17 <?php if ( have_posts() ) : ?>
18 <header class="page-header">
20 the_archive_title( '<h1 class="page-title">', '</h1>' );
21 the_archive_description( '<div class="taxonomy-description">', '</div>' );
23 </header><!-- .page-header -->
26 <div id="primary" class="content-area">
27 <main id="main" class="site-main" role="main">
30 if ( have_posts() ) : ?>
33 while ( have_posts() ) : the_post();
36 * Include the Post-Format-specific template for the content.
37 * If you want to override this in a child theme, then include a file
38 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
40 get_template_part( 'template-parts/post/content', get_post_format() );
44 the_posts_pagination( array(
45 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
46 'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
47 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
52 get_template_part( 'template-parts/post/content', 'none' );
57 </div><!-- #primary -->
58 <?php get_sidebar(); ?>