Ну вот первая часть которая отображет именно посты а не просто
картинки.
<?php
if ( $_GET['template'] == 1): ?>
<div id="archive">
<?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()) { ?>
<h2><?php echo single_cat_title(); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Архив<?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Архив <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Архив<?php the_time('Y'); ?></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2>Вы искали, мы нашли</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?
>
<h2>Архив автора</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET
['paged']) && !empty($_GET['paged'])) { ?>
<h2>Архив страниц</h2>
<?php } ?>
<p class="thumb"><a href="?template=0" alt="матрицей">матрицей</
a> <span class="thumb_ac"> списком </span></p>
</div><!-- div id="archive" -->
<?php while (have_posts()) : the_post(); ?>
<div id="content">
<div id="maintop">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php
the_title(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_time('F jS, y'); ?>
| <span class="Tags">
<?php
if (!is_page()) {
the_category(', ');
}?></span>
</div> <!-- div class="maintop" -->
<div id="post">
<p><?php the_content('(more...)'); ?></p>
<span class="comment">
<?php comments_popup_link('Оставить комментарий', 'Пока один
комментарий', 'Добавить свой(%)'); ?> <?php edit_post_link
('e','',''); ?>
</span>
</div> <!--div id="post"-->
</div> <!--div id="content">
<?php endwhile; ?>
<div id="previous">
<h2><?php next_posts_link('← Назад') ?>
<?php previous_posts_link('Вперед →') ?></h2>
</div><!--div id="previous"-->
<?php else : ?>
<h2 class="center">Таких рубрик нет :(</h2>
<?php endif; ?>
<?php else : ?>