forked from aspirepress/site-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-archives.php
38 lines (33 loc) · 1.39 KB
/
page-archives.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
<?php get_header(); ?>
<div class="col-sm-9 blog-main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post() ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-post'); ?>>
<?php the_title('<h1 class="post-title page-header">', '</h1>'); ?>
<div class="entry-summary">
<?php the_content(sprintf('Continue reading %s', the_title( '<span class="screen-reader-text">', '</span>', false))); ?>
</div>
</article>
<?php endwhile; ?>
<?php endif; ?>
<div class="entry-summary row">
<div class="col-sm-6">
<h3>By category</h3>
<ul class="archive-list">
<?php wp_list_categories(['title_li' => null]); ?>
</ul>
</div>
<div class="col-sm-6">
<h3>By year</h3>
<ul class="archive-list">
<?php wp_get_archives('type=yearly'); ?>
</ul>
</div>
</div>
<p class="post-meta meta list-post-meta">
<?php edit_post_link('<span>Edit page</span>', '<span class="edit-link"> ', '</span>'); ?>
</p>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<!-- page-archives.php -->