-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
34 lines (31 loc) · 910 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
defined( 'ABSPATH' ) or die( 'Vulpix, use Flamethrower!' );
/**
* Archive template
*
* @link https://developer.wordpress.org/themes/basics/template-files/#common-wordpress-template-files
* @package Vulpix
* @since Vulpix 1.0.0
*/
get_header();
?>
<main role="main" class="container">
<div class="grid">
<?php
// Archive title
printf( __( '<h1 class="col-12 --center">%s</h1>', 'vulpix' ), single_cat_title( '', false ) );
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
// Get post list template
get_template_part( 'template-parts/content/template', 'post-list' );
}
}
// Get pagination
vpx_the_posts_navigation();
?>
</div>
<?php get_template_part( 'template-parts/archive/template', 'archive-footer' ); ?>
</main>
<?php
get_footer();