-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome.php
More file actions
35 lines (31 loc) · 748 Bytes
/
home.php
File metadata and controls
35 lines (31 loc) · 748 Bytes
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
<?php
get_header();
?>
<div class="container-blog">
<section class="container-inicial-blog">
<h1>Blog</h1>
</section>
<?php
if (have_posts()) :
?>
<section class="conteiner-conteudos cards-grid">
<?php
while (have_posts()) : the_post();
get_template_part('template-parts/content', 'card');
endwhile;
?>
</section>
<?php
the_posts_pagination(array(
'mid_size' => 2,
'prev_text' => __('« Anterior', 'textdomain'),
'next_text' => __('Próximo »', 'textdomain'),
));
else :
echo '<p>Nenhum post encontrado!</p>';
endif;
?>
</div>
<?php
get_footer();
?>