Hi, I'm trying to create a new theme and am having some trouble getting the archive.php file to display the correct data. This is what I want to happen: - The archive (eg. April 2011) only shows posts from certain categories - The archive page is paginated using WP PageNavi This is what is currently happening: - The archive is showing posts from certain categories but it is showing for all dates. So the archive page for April 2011 is also showing posts from February 2011 etc. I think it needs a fix in the new WP_Query. This is the current code (it's a total hack job!): <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $my_query = new WP_Query("showposts=4&cat=-5,-6,-7,-8,-9&paged=$paged"); while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> Code (markup): And for the pagination: <?php query_posts('cat=-5,-6,-7,-8,-9' . '&paged=' . get_query_var('paged')); ?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> <p class="pagination"> <?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?> </p> <?php } ?> Code (markup): I can pay $10 by paypal if you can help me fix this code and do what I want it to. Thanks, Peter
PM me if you are still looking for someone to do this for you. I got a clear idea what you want to do and I already have the solution for this.