Bump. I want posts on a given day but I also want a forward / back button on the bottom. How will I do that?
Thanks.
Here is the index.php I really don't know how to fix this with the wp_query stuff which I don't fully understand. Sorry about the messy file but thats how I got the pages to work...
<?php
/* Template Name: Main Index
*/
?>
<?php
get_header();
?>
<?php
if (is_home()) {
$latest = $wpdb->get_var("SELECT post_date FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date DESC LIMIT 1");
$latest = str_replace('-', '', substr($latest, 0, 10));
//echo $latest;
query_posts('m=' . $latest . '&showposts=-1');
$wp_query->is_archive = false; $wp_query->is_home = true;
} else { $post = $wp_query->post; }?>
<?php if (in_category('12') && is_home()==false) { ?>
<div id="comic">
<?php } else { ?>
<div id="content">
<?php } ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if (in_category('12') && is_home()==false) { ?>
<div class="entry_comic">
<h3 class="etitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a> </h3>
<div align="center">
<a href="http://66.7.201.40/~cujpybvo/comic/2007/07/11/sanchit-is-always-messin-with-mimes/"><img src="<?php echo bloginfo('template_directory');?>/images/first.gif" border="0"></a>
<?php
$wp_query->is_single = true;
previous_cat_post($beforeGroup='', $afterGroup='', $beforeEach='', $afterEach='', $showtitle=false, $textForEach='<img src="../../../../../wp-content/themes/mushblue-10/images/back.gif" border="0">');
$wp_query->is_single = false;
?>
<a href="<?php echo bloginfo('url');?>/"><img src="<?php echo bloginfo('template_directory');?>/images/home.gif" border="0"></a>
<?php
$wp_query->is_single = true;
next_cat_post($beforeGroup='', $afterGroup='', $beforeEach='', $afterEach='', $showtitle=false, $textForEach='<img src="../../../../../wp-content/themes/mushblue-10/images/next.gif" border="0">');
$wp_query->is_single = false;
?>
<a href="http://66.7.201.40/~cujpybvo/comic/"><img src="<?php echo bloginfo('template_directory');?>/images/new.gif" border="0"></a>
</div>
<?php } else { ?>
<div class="entry">
<div class="date"><p><span class="month"><?php the_time('M') ?></span><span class="day"> <?php the_time('j') ?> </span></p></div>
<h3 class="etitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a> </h3>
<div class="emeta">
Posted by: <?php the_author_posts_link(); ?><br>
<?php //the_time('F dS, Y');
echo " Category: "; the_category(',');
?>
</div>
<?php } ?>
<div class="ebody">
<?php if (!empty($post->post_excerpt) && is_home()) { the_excerpt(); } else {the_content(__('Read more')); }?>
<?php if (in_category('12')) { ?>
<?php edit_post_link(__('<strong>Edit</strong>'));?>
<?php } else { ?>
<?php comments_popup_link( 'No comments ','1 comment ','% comments ','clink ',''); edit_post_link(__('<strong>Edit</strong>'));?>
<?php } ?>
</div>
<!-- <?php trackback_rdf(); ?> -->
<?php if (!in_category('12')) { ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php } ?>
</div>
<?php endwhile; else: ?>
<p>
<?php _e('Sorry, no posts matched your criteria.'); ?>
</p>
<?php endif; ?>
<?php if (in_category('12') && is_home()==false) { ?>
<div align="center">
<a href="http://66.7.201.40/~cujpybvo/comic/2007/07/11/sanchit-is-always-messin-with-mimes/"><img src="<?php echo bloginfo('template_directory');?>/images/first.gif" border="0"></a>
<?php
$wp_query->is_single = true;
previous_cat_post($beforeGroup='', $afterGroup='', $beforeEach='', $afterEach='', $showtitle=false, $textForEach='<img src="../../../../../wp-content/themes/mushblue-10/images/back.gif" border="0">');
$wp_query->is_single = false;
?>
<a href="<?php echo bloginfo('url');?>/"><img src="<?php echo bloginfo('template_directory');?>/images/home.gif" border="0"></a>
<?php
$wp_query->is_single = true;
next_cat_post($beforeGroup='', $afterGroup='', $beforeEach='', $afterEach='', $showtitle=false, $textForEach='<img src="../../../../../wp-content/themes/mushblue-10/images/next.gif" border="0">');
$wp_query->is_single = false;
?>
<a href="http://66.7.201.40/~cujpybvo/comic/"><img src="<?php echo bloginfo('template_directory');?>/images/new.gif" border="0"></a>
</div>
</div>
<?php } else { ?>
<p>
<?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
</p>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<!-- The main column ends -->
<?php get_footer(); ?>