-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
47 lines (36 loc) · 939 Bytes
/
index.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
<?php
/**
* Blog Index
* Description: The template for displaying the Blog index /blog.
*
* @package karyawp
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
do_action('karyawp_container_before');
?>
<main class="site-main" id="main">
<div class="row row-archive">
<?php
if ( have_posts() ) {
// Start the Loop.
$i = 1;
while ( have_posts() ) {
the_post();
get_template_part( 'template-loop/content', get_post_format() );
$i++;
}
} else {
get_template_part( 'template-loop/content-none' );
}
?>
</div>
<?php
// Display the pagination.
karyawp_pagination();
?>
</main><!-- #main -->
<?php
do_action('karyawp_container_after');
get_footer();