-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
36 lines (26 loc) · 1013 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
35
36
<?php get_header();?>
<section class="page-wrap">
<div class="container">
<section class="row">
<div class="col-lg-3">
<?php if (is_active_sidebar('blog-sidebar')):?>
<?php dynamic_sidebar('blog-sidebar');?>
<?php endif;?>
</div>
<div class="col-lg-9">
<!-- <h1><?php echo single_cat_title();?></h1> -->
<?php get_template_part('includes/section', 'archive');?>
<?php global $wp_query;
$big = 999999999; //need an unlikely int
echo paginate_links(array(
'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
'format' => '?paged=%#%',
'current' => max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages
));
?>
</div>
</section>
</div>
</section>
<?php get_footer(); ?>