3 * The template for displaying Archive pages.
5 * Used to display archive-type pages if nothing more specific matches a query.
6 * For example, puts together date-based pages if no date.php file exists.
8 * Learn more: http://codex.wordpress.org/Template_Hierarchy
11 * @subpackage Twenty_Ten
12 * @since Twenty Ten 1.0
18 <div id="content" role="main">
21 /* Queue the first post, that way we know
22 * what date we're dealing with (if that is the case).
24 * We reset this later so we can run the loop
25 * properly with a call to rewind_posts().
31 <h1 class="page-title">
32 <?php if ( is_day() ) : ?>
33 <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
34 <?php elseif ( is_month() ) : ?>
35 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
36 <?php elseif ( is_year() ) : ?>
37 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
39 <?php _e( 'Blog Archives', 'twentyten' ); ?>
44 /* Since we called the_post() above, we need to
45 * rewind the loop back to the beginning that way
46 * we can run the loop properly, in full.
50 /* Run the loop for the archives page to output the posts.
51 * If you want to overload this in a child theme then include a file
52 * called loop-archive.php and that will be used instead.
54 get_template_part( 'loop', 'archive' );
57 </div><!-- #content -->
58 </div><!-- #container -->
60 <?php get_sidebar(); ?>
61 <?php get_footer(); ?>