forked from gramophone-wp/Gramophone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
75 lines (57 loc) · 1.76 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
*******************************************************************************
* //archive.php
*******************************************************************************
*
* The template for post archives.
*
* CODEX REF
* https://codex.wordpress.org/Creating_an_Archive_Index
*
* @author
* @copyright
* @link
* @todo
* @license
* @since
* @version
**/
?>
<?php get_header(); ?>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1><?php the_title(); ?></h1>
</div>
</div>
<div itemscope itemtype="http://schema.org/CollectionPage">
<div class="container">
<div class="row">
<div class="col-md-9">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><em>
By <?php the_author(); ?>
on <?php echo the_time('l, F jS, Y');?>
in <?php the_category( ', ' ); ?>.
<a href="<?php comments_link(); ?>">
<?php comments_number(); ?>
</a>
</em></p>
<?php the_excerpt(); ?>
</article>
<hr>
<?php endwhile; else: ?>
<div class="page-header">
<h1>Oh no!</h1>
</div>
<p>No content is appearing for this page!</p>
<?php endif; ?>
</div>
<?php get_sidebar( 'blog' ); ?>
</div>
<?php theme_pagination(); ?>
</div>
</div>
<?php get_footer(); ?>