-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
37 lines (27 loc) · 1.06 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
<?php if ( ! defined( 'WPINC' ) ) { die('Direct access prohibited!'); }?>
<?php get_header(); ?>
<header class="page-header">
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php if ( get_the_archive_description() ) : ?>
<div class="archive-description"><?php echo the_archive_description(); ?></div>
<?php endif; ?>
</header><!-- .page-header -->
<?php
// Start the Loop
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<p class="entry-date published updated">Published <a class="u-url" href="<?php the_permalink() ?>"><?php the_time('F j, Y') ?></a></p>
</footer><!-- .entry-footer -->
</article><!-- #post-${ID} -->
<?php endwhile; // End of the loop. ?>
<?php get_template_part( 'pager' ); ?>
<?php get_footer(); ?>