2020-09-10 21:18:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying archive pages
|
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Nineteen
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header();
|
|
|
|
?>
|
|
|
|
|
2021-03-27 00:36:58 +00:00
|
|
|
<section id="primary" class="content-area">
|
|
|
|
<main id="main" class="site-main blog-main archive">
|
2020-09-10 21:18:13 +00:00
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<header class="page-header">
|
|
|
|
<?php
|
|
|
|
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
|
|
|
?>
|
2024-01-25 16:15:24 +00:00
|
|
|
<?php if ( get_query_var('paged') ) {
|
|
|
|
echo '<span class="paged-page-number">(Page '. get_query_var('paged') .')</span>';
|
|
|
|
} ?>
|
2020-09-10 21:18:13 +00:00
|
|
|
</header><!-- .page-header -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
// Start the Loop.
|
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
|
|
|
|
2021-03-27 00:36:58 +00:00
|
|
|
get_template_part( 'template-parts/content/content', 'loop' );
|
2020-09-10 21:18:13 +00:00
|
|
|
|
|
|
|
// End the loop.
|
|
|
|
endwhile;
|
|
|
|
|
|
|
|
// Previous/next page navigation.
|
2024-01-09 23:27:00 +00:00
|
|
|
echo wasmo_pagination();
|
2020-09-10 21:18:13 +00:00
|
|
|
|
|
|
|
// If no content, include the "No posts found" template.
|
|
|
|
else :
|
|
|
|
get_template_part( 'template-parts/content/content', 'none' );
|
|
|
|
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</main><!-- #main -->
|
2021-03-27 00:36:58 +00:00
|
|
|
</section><!-- #primary -->
|
2020-09-10 21:18:13 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
get_footer();
|