-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
55 lines (39 loc) · 1.28 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
<?php
get_header();
// get_template_part('template-parts/page-header');
?>
<section id="archive" class="container">
<h1 class="col-12 text-center"><?php echo single_cat_title(); ?></h1>
<p><?php echo category_description(); ?></p>
<?php
if (have_posts()):
?>
<!-- -->
<div class="row">
<?php
while (have_posts()):the_post();
?>
<article id="archive-card" class="col-xs-12 col-md-6 col-lg-4">
<a class="col-12 no-padding" href="<?php echo get_the_permalink(); ?>">
<div id="archive-card-img" class="col-12 imgLiquid imgLiquidFill">
<img src="<?php echo the_post_thumbnail_url(); ?>" alt="Archivo Coello Trejo">
</div>
<h4 class="col-12"><?php echo the_title(); ?></h4>
<div class="col-12 no-padding"><?php echo get_excerpt(); ?></div>
<p class="col-12 text-right"><small><?php echo get_the_date(); ?></small></p>
</a>
</article>
<?php endwhile; ?>
</div>
<!-- paginacion -->
<div class="paginacion row">
<div class="nav-previous col-6 text-left"><?php previous_posts_link( 'Anterior' ); ?></div>
<div class="nav-next col-6 text-right"><?php next_posts_link( 'Siguiente' ); ?></div>
</div>
<!-- -->
<?php
endif;
?>
</section>
<?php
get_footer();