Kod
<div class="sitenav">
<a href="<?php bloginfo('url'); ?>">Home</a> » Archives
</div>
<?php if (have_posts()) : ?>
<div class="post">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1>Archive for the ‘<?php single_cat_title(); ?>’ Category</h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1>Posts Tagged ‘<?php single_tag_title(); ?>’</h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1>Archive for <?php the_time('F jS, Y'); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1>Archive for <?php the_time('F, Y'); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1>Archive for <?php the_time('Y'); ?></h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1>Author Archive</h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1>Blog Archives</h1>
<?php } ?>
</div>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><div class="clear"></div>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post archived">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<ul class="postinfo">
<li><?php the_time('l, F j, Y, G:i'); ?></li>
<li class="ncat"><?php the_category(', ') ?></li>
<?php if(function_exists('the_views')) { print '<li class="nview">'; the_views(); print '</li>'; } ?>
<li class="ncomment"><a href="<?php the_permalink(); ?>#respond"><?php comments_number('Add a comment','1 comment','% comments'); ?></a></li>
<?php edit_post_link('[Edit]', '<li>', '</li>'); ?>
</ul><div class="clear"></div>
<div class="entry">
<div class="thumb"><?php show_thumb($width=120,$height=100,$crop='T',$quality=95,$blank=false); ?></div>
<?php the_excerpt_reloaded(65, '<a>', 'none', FALSE); ?>
<a href="<?php the_permalink(); ?>" class="fullstory">Full story</a><div class="clear"></div>
</div>
<?php the_tags('<div class="tags">Tags: ', ', ', '</div>'); ?>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><div class="clear"></div>
<?php else : ?>
<?php include TEMPLATEPATH. '/templates/not.found.html'; ?>
<?php endif; ?>
<a href="<?php bloginfo('url'); ?>">Home</a> » Archives
</div>
<?php if (have_posts()) : ?>
<div class="post">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1>Archive for the ‘<?php single_cat_title(); ?>’ Category</h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1>Posts Tagged ‘<?php single_tag_title(); ?>’</h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1>Archive for <?php the_time('F jS, Y'); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1>Archive for <?php the_time('F, Y'); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1>Archive for <?php the_time('Y'); ?></h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1>Author Archive</h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1>Blog Archives</h1>
<?php } ?>
</div>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><div class="clear"></div>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post archived">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<ul class="postinfo">
<li><?php the_time('l, F j, Y, G:i'); ?></li>
<li class="ncat"><?php the_category(', ') ?></li>
<?php if(function_exists('the_views')) { print '<li class="nview">'; the_views(); print '</li>'; } ?>
<li class="ncomment"><a href="<?php the_permalink(); ?>#respond"><?php comments_number('Add a comment','1 comment','% comments'); ?></a></li>
<?php edit_post_link('[Edit]', '<li>', '</li>'); ?>
</ul><div class="clear"></div>
<div class="entry">
<div class="thumb"><?php show_thumb($width=120,$height=100,$crop='T',$quality=95,$blank=false); ?></div>
<?php the_excerpt_reloaded(65, '<a>', 'none', FALSE); ?>
<a href="<?php the_permalink(); ?>" class="fullstory">Full story</a><div class="clear"></div>
</div>
<?php the_tags('<div class="tags">Tags: ', ', ', '</div>'); ?>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><div class="clear"></div>
<?php else : ?>
<?php include TEMPLATEPATH. '/templates/not.found.html'; ?>
<?php endif; ?>