-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
33 lines (31 loc) · 946 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
<?php get_header(); ?>
<section class="content__section">
<?php
if (have_posts()) {
while(have_posts()) {
the_post();
include 'php/home/feed-item.php';
}
?>
</section>
<?php
} else {
echo '<p>No content found</p>';
}
?>
</section>
<section class="content__section container container--direction--row container--justify--center container--align--center">
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'prev_text' => __('«'),
'next_text' => __('»'),
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
?>
</section>
<?php get_footer(); ?>