-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
49 lines (32 loc) · 781 Bytes
/
home.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
<?php
/**
* The template for displaying the blog post index
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Upside Down
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<section class="container">
<?php if ( have_posts() ) : ?>
<?php $i = 1; ?>
<div class="row">
<!-- /* Start the Loop */ -->
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/post/content', 'card' );
if( $i == 3 ){
echo '</div><div class="row">';
$i = 0;
}
$i++;
endwhile; ?> <!-- // End of the loop. -->
</div>
<?php the_posts_pagination();
else :
get_template_part( 'template-parts/post/content', 'none' );
endif; ?>
</div>
</section>
<?php get_footer();