-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
54 lines (48 loc) · 1.26 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Archive Page template file.
*
* @package Aquila
*/
get_header();
?>
<div id="primary">
<main id="main" class="site-main my-5" role="main">
<div class="container">
<header class="page-header">
<?php
if ( ! empty( single_term_title( '', false ) ) ) {
printf(
'<h1 class="page-title">%s</h1>',
single_term_title( '', false )
);
}
if ( ! empty( get_the_archive_description() ) ) {
the_archive_description( '<div class="archive-description">', '</div>' );
}
?>
</header><!-- .page-header -->
<div class="site-content">
<div class="row">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', '', [ 'container_classes' => 'col-lg-4 col-md-6 col-sm-12 pb-4' ] );
endwhile;
else :
get_template_part( 'template-parts/content-none' );
endif;
?>
</div>
<div>
<?php
aquila_pagination();
// echo do_shortcode('[post_listing_more]'); //This is Infinite Scroll shortcode Which defined in inc/classes/class-loadmore-posts.php
?>
</div>
</div>
</div>
</main>
</div>
<?php
get_footer();