Forum Moderators: coopster
<?php query_posts('cat=12&posts_per_page=38&orderby=date&order=ASC'); ?>
<?php while ( have_posts() ) : the_post() ?>
<?php //check the dates
$post_date = mysql2date("Ymd", $post->post_date_gmt);
$currentdate = date("Ymd", strtotime('-1 day'));
$expirationdate = $post_date;
if ( $expirationdate > $currentdate ) { ?>
<li>
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
</li>
<?php } //end date check ?>
<?php endwhile; ?>