mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 08:41:18 +03:00
47 lines
819 B
PHP
47 lines
819 B
PHP
<?php
|
|
/**
|
|
* The template for displaying archive pages.
|
|
*
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package WordPressdotorg\Theme
|
|
*/
|
|
|
|
namespace WordPressdotorg\Theme;
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<main id="main" class="site-main col-8" role="main">
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
<header class="page-header">
|
|
<?php
|
|
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
|
the_archive_description( '<div class="taxonomy-description">', '</div>' );
|
|
?>
|
|
</header><!-- .page-header -->
|
|
|
|
<?php
|
|
/* Start the Loop */
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
|
|
get_template_part( 'template-parts/content' );
|
|
endwhile;
|
|
|
|
the_posts_pagination();
|
|
|
|
else :
|
|
get_template_part( 'template-parts/content', 'none' );
|
|
|
|
endif;
|
|
?>
|
|
|
|
</main><!-- #main -->
|
|
|
|
<?php
|
|
get_sidebar();
|
|
get_footer();
|