-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdate.php
More file actions
46 lines (29 loc) · 999 Bytes
/
Copy pathdate.php
File metadata and controls
46 lines (29 loc) · 999 Bytes
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
<?php
/*
* The date archive template
*
* @package Inception
* @author Adam Chamberlin
* @since 1.0
*
*/
?>
<?php get_header(); // Load the header ?>
<section id="content">
<section id="main" role="main">
<?php if ( have_posts() ) : // If we have posts ?>
<header class="page-header">
<h1 class="page-title">
<?php _e( 'Archives', 'inception' ); ?>
</h1><!-- .page-title -->
</header><!-- .page-header -->
<?php while ( have_posts() ) : the_post(); // Start The Loop ?>
<?php get_template_part( 'content', get_post_format() ); // Load the main content template, can override with post types ?>
<?php endwhile; // End The Loop ?>
<?php else : // Else if we do not have any posts ?>
<p>There are no posts</p>
<?php endif; // End the check for posts ?>
</section><!-- #main -->
<?php get_sidebar(); // Load the sidebar ?>
</section><!-- #content -->
<?php get_footer(); // Load the footer ?>