Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c6fbf2f2ef
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (37 sloc) 1.369 kB
<?php
/*
Template Name: This Month of Comics
*/
get_header();
//based on Austin Matzko's code from wp-hackers email list
function filter_where($where = '') {
//posts in the last 30 days
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
// $where .= " AND post_date >= '2009-03-01' AND post_date < '2009-03-16'";
return $where;
}
add_filter('posts_where', 'filter_where');
$wp_query->in_the_loop = true;
$archiveQuery = new WP_Query();
$archiveQuery->query('show_posts=-1&posts_per_page=-1&cat='.comicpress_all_comic_categories_string());
?>
<div <?php post_class(); ?>>
<?php if (comicpress_themeinfo('enable_caps')) { ?><div class="post-head"></div><?php } ?>
<div class="post-content">
<div class="post-info">
<div class="post-text">
<h2 class="page-title"><?php the_title(); ?></h2>
</div>
</div>
<?php if ($archiveQuery->have_posts()) : while ($archiveQuery->have_posts()) : $archiveQuery->the_post() ?>
<div class="comicthumbwrap">
<div class="comicarchiveframe">
<a href="<?php the_permalink() ?>"><?php comicpress_display_comic_thumbnail($type = 'mini', $post, true); ?></a><br />
</div>
</div>
<?php endwhile; endif; ?>
<div class="clear"></div>
</div>
<?php if (comicpress_themeinfo('enable_caps')) { ?><div class="post-foot"></div><?php } ?>
</div>
<?php get_footer() ?>
Jump to Line
Something went wrong with that request. Please try again.