-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcategory.php
executable file
·23 lines (21 loc) · 902 Bytes
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php get_header(); ?>
<header class="archive-header">
<?php if (get_term_meta(get_queried_object_id(), '_thumb', true)) : ?>
<img src="<?php echo get_term_meta(get_queried_object_id(), '_thumb', true); ?>" alt="<?php single_term_title('', true); ?>" class="archive-header-image">
<?php endif; ?>
<div class="archive-header-content">
<h1 class="archive-title"><?php single_term_title('', true); ?></h1>
<?php the_archive_description('<div class="taxonomy-description">', '</div>'); ?>
</div>
</header>
<main class="site--main">
<?php if (have_posts()) :
echo '<div class="posts--list">';
while (have_posts()) : the_post();
get_template_part('template-parts/content', get_post_format());
endwhile;
echo '</div>';
get_template_part('template-parts/pagination');
endif; ?>
</main>
<?php get_footer(); ?>