-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
39 lines (39 loc) · 1.32 KB
/
archive.php
File metadata and controls
39 lines (39 loc) · 1.32 KB
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
37
38
39
<?php get_header();?>
<?php $term = $wp_query->get_queried_object();?>
<div class="container" style="padding-top: 35px; padding-bottom: 35px;">
<div class="row">
<div class="col-sm-8">
<h1 style="text-transform: capitalize;margin-bottom: 30px;">
<?php if( $term != null ): ?>
Tagged Under: <?php echo $term->name; ?>
<?php else: ?>
Tagged Under: <?php echo single_month_title(' '); ?>
<?php endif;?>
</h1>
<?php if (have_posts()) : ?>
<ul class='article-list two-list' style='margin-bottom:50px; padding-left: 0;'>
<?php while (have_posts()) : the_post(); ?>
<li class="orbit-article-db orbit-list-db">
<?php get_template_part('partials/content', 'article');?>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<!-- PAGINATION -->
<?php
global $wp_query;
if( $wp_query->max_num_pages > 1 ){
the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( 'Previous', 'textdomain' ),
'next_text' => __( 'Next', 'textdomain' ),
) );
}
?>
</div>
<div class="col-sm-4">
<?php if( is_active_sidebar( 'single-post-sidebar' ) ){ dynamic_sidebar( 'single-post-sidebar' ); }?>
</div>
</div>
</div>
<?php get_footer();?>