-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive.php
60 lines (57 loc) · 1.54 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
55
56
57
58
59
60
<?php get_header(); //category.php author.php tags.php date.php ?>
<div class="container-fluid bg-general-header">
<div class="container py-4">
<header class="col-md-12 header-config">
<h1 class="text-center text-light">
<?php the_archive_title(); ?>
<span class="underline"></span>
</h1>
<?php the_archive_description(); ?>
</header>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-8">
<?php
//Possui posts?
if(have_posts()):
//Enquando houver posts, mostre
while(have_posts()): the_post();
// Todo o conteudo desta página
?>
<section class="card my-3">
<div class="card-body">
<div class="row">
<div class="col-md-4">
<?php the_post_thumbnail('',array('class' => 'img-fluid pb-2')); ?>
</div>
<div class="col-md-8">
<h2><?php the_title(); ?></h2>
<p><?php the_excerpt(); ?></p>
<div class="float-right">
<a href="<?php the_permalink(); ?>" class="btn btn-link">Veja a Publicação</a>
</div>
</div>
</div>
</div>
</section>
<?php
endwhile;
?>
<div class="row pag-link">
<div class="text-left col-6"><?php previous_posts_link('<< Postagens Recentes'); ?></div>
<div class="text-right col-6"><?php next_posts_link('Postagens Anteriores >>'); ?></div>
</div>
<?php
endif;
?>
</div>
<div class="col-md-4">
<?php
dynamic_sidebar('sidebar-right');
?>
</div>
</div>
</div>
<?php get_footer(); ?>