File: C:/Users/fred/OneDrive/Desktop/wordpress/wp-content/themes/our-rights/archive.php
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<p class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</p>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<p class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</p>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<p class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p class="pagetitle">Archive for <?php the_time('F, Y'); ?></p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p class="pagetitle">Archive for <?php the_time('Y'); ?></p>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<p class="pagetitle">Author Archive</p>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p class="pagetitle">Blog Archives</p>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p class="postdate"><?php the_time('F jS, Y') ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata">
<?php edit_post_link('Edit', '', ' | '); ?>
<span class="posttime"><?php the_time('F jS, Y') ?></span> |
<span class="postcat">Posted in <?php the_category(', ') ?></span>
<?php the_tags(' | <span class="posttag">Tagged with ', ', ', '</span> |'); ?>
</p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>