-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
55 lines (49 loc) · 1.52 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
/**
* The template for displaying archive pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Hayley
*/
get_header(); ?>
<div class="row section">
<section class="large-8 columns">
<article class="entry" id="entry">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink(); ?>"><figure>
<?php the_post_thumbnail(); ?>
</figure></a>
<?php } ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="single-post-meta">
<?php echo esc_html( hayley_single_meta( $post->ID ) ); ?>
</div>
<div class="entry-content-container">
<?php the_excerpt(); ?>
<ul class="continue-reading">
<li><a class="button read-more red" href="<?php the_permalink(); ?>"><?php esc_html_e('Countinue Reading', 'hayley'); ?></a></li>
<li class="comments"><?php comments_number(); ?></li>
</ul>
</div>
<?php endwhile; ?>
<?php the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</article>
<div class="clear"></div>
</section>
<?php get_sidebar(); ?>
</div><!-- #primary -->
<?php get_footer(); ?>