-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive.php
34 lines (28 loc) · 835 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
34
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package wp-excellent
*/
get_header();
$description = get_the_archive_description();
?>
<div class="wrapper region flow prose">
<?php if (have_posts()) : ?>
<header class="flow">
<?php the_archive_title('<h1 class="page-title gradient-text">', '</h1>'); ?>
<?php if ($description) : ?>
<?php echo wp_kses_post(wpautop($description)); ?>
<?php endif; ?>
</header><!-- .page-header -->
<?php while (have_posts()) : ?>
<?php the_post(); ?>
<?php get_template_part('template-parts/content/content', 'excerpt'); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part('template-parts/content/content-none'); ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>