rework archive titles so they actually work

This commit is contained in:
John Bintz 2009-07-15 16:45:54 -04:00
parent 8f2e149957
commit 166c4bd058
3 changed files with 16 additions and 15 deletions

View File

@ -39,12 +39,11 @@ for ($i = 0; $i < 7; ++$i) {
<div id="content" class="narrowcolumn">
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
<?php while (have_posts()) { the_post(); ?>
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
<div class="entry">
<?php while (have_posts()) { the_post(); the_content(); } ?>
</div>
<div class="entry"><?php the_content() ?></div>
<?php } ?>
<div class="archive-yearlist">|
<?php

View File

@ -65,10 +65,12 @@ Template Name: Comic Storyline with Thumbs
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle"><?php the_title() ?></h2>
<div class="entry">
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="entry">
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<ul id="storyline" class="level-0">
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
if (($result = get_option("comicpress-storyline-category-order")) !== false) {

View File

@ -37,12 +37,12 @@ Template Name: Comic Year Archive
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
<div class="entry">
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
</div>
<?php while (have_posts()) : the_post() ?>
<div class="entry">
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<div class="archive-yearlist">|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");