View Single Post
Old 08-07-2009, 11:17   #7 (permalink)
Pete Nice
Crankshaft
 
Pete Nice's Avatar
 
Join Date: Apr 2003
Posts: 2,097
ok slags and byatches - thanks so much for all your help on my earlier post - and as per usual I sorted it out myself. I do have another question - no doubt it will sit here for a few hours until I work it out with maybe a couple of non-helpful posts added.

I'm using this pagination query on my index page - now I need to get it to work on the archives page - just incase there's loads of posts in that month. Currently the query is ignoring the query string and just paginating all of the months rather than just the one being passed:

PHP Code:
$temp = $wp_query; 
        $wp_query= null;
        $wp_query = new WP_Query(); 
        $wp_query->query('showposts=6'.'&paged='.$paged); ?> 
        
           <div id="search_title"><?php the_time('F, Y'); ?></div>        
        <div id="search_amount"></div>
        
        <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
          
          <div id="post_date"><?php the_time('M'?><br /><span><?php the_time('d'?></span></div>
        <div id="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
        <div id="post_author">posted by <?php the_author() ?></div>
        <div id="search_res"></div>
         <?php endwhile; ?>
  Reply With Quote