-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
45 lines (36 loc) · 1.18 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
<?php
/**
* Archive template.
*
* @package Edrea
*
* @version 1.0.0
* @copyright Copyright (c) 2023, Leonardo Doherty
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*
*/
$args = array(
'prev_text' => __( 'Older', 'edrea' ),
'next_text' => __( 'Newest', 'edrea' ),
'screen_reader_text' => __( 'Posts navigation'. 'edrea' ),
'aria_label' => __( 'Posts', 'edrea' ),
'class' => 'posts-navigation',
);
get_header(); ?>
<main id="post-<?php the_ID(); ?>" class="edrea-archive-blog <?php post_class(); ?>">
<div class="container">
<div id="edrea-ajax-wrapper" class="edrea-archive-blog__wrapper edrea-masonry">
<?php if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
endif;
?>
</div>
<?php the_posts_navigation( $args ); ?>
<?php wp_link_pages(); ?>
</div>
</main>
<?php get_footer(); ?>