-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
executable file
·37 lines (26 loc) · 1.02 KB
/
archive.php
File metadata and controls
executable file
·37 lines (26 loc) · 1.02 KB
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
<?php
/**
* @package _blank
*/
get_header(); ?>
<main id="main" role="main">
<h1><?php the_archive_title( '<h1>', '</h1>' ); ?></h1>
<?php while ( have_posts() ) { the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<span class="post-date"><?php the_time( get_option( 'date_format' ) ) ?></span>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</header>
<?php the_content(); ?>
</article>
<?php }
// Previous/next page navigation
the_posts_pagination( array(
'prev_text' => __( '← previous page', '_blank' ),
'next_text' => __( 'next page →', '_blank' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', '_blank' ) . ' </span>',
) );
?>
</main><!-- #main -->
<?php get_sidebar( 'sidebar' );
get_footer(); ?>