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 id="content" class="narrowcolumn">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page"> <div class="post-page">
<?php while (have_posts()) { the_post(); ?>
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2> <h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
<div class="entry"> <div class="entry"><?php the_content() ?></div>
<?php while (have_posts()) { the_post(); the_content(); } ?> <?php } ?>
</div>
<div class="archive-yearlist">| <div class="archive-yearlist">|
<?php <?php

View File

@ -65,10 +65,12 @@ Template Name: Comic Storyline with Thumbs
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page"> <div class="post-page">
<h2 class="pagetitle"><?php the_title() ?></h2> <?php while (have_posts()) : the_post(); ?>
<div class="entry"> <div class="entry">
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?> <h2 class="pagetitle"><?php the_title() ?></h2>
<?php the_content(); ?>
</div> </div>
<?php endwhile; ?>
<ul id="storyline" class="level-0"> <ul id="storyline" class="level-0">
<?php if (get_option('comicpress-enable-storyline-support') == 1) { <?php if (get_option('comicpress-enable-storyline-support') == 1) {
if (($result = get_option("comicpress-storyline-category-order")) !== false) { 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-head"></div>
<div class="post-page"> <div class="post-page">
<?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"> <div class="entry">
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?> <h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
<?php the_content(); ?>
</div> </div>
<?php endwhile; ?>
<div class="archive-yearlist">| <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"); <?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");