comicpress-theme-core/archive.php
2009-07-15 21:55:28 -04:00

29 lines
658 B
PHP

<?php get_header() ?>
<div id="content" class="archive">
<?php if (have_posts()) {
include_partial('archive-header');
// why can't wordpress allow for post date asc sorting out of the box...
query_posts($query_string . '&order=asc');
while (have_posts()) {
the_post();
if (in_comic_category()) {
include_partial('archive-comic-post');
} else {
include_partial('archive-blog-post');
}
}
include_partial('archive-page-nav');
} else {
include_partial('archive-not-found');
} ?>
</div>
<?php include(get_template_directory() . '/sidebar.php') ?>
<?php get_footer() ?>