is the reset there for a reason?
line 157: <?php wp_reset_query(); ?>
you might also want to look into $query_string:
http://codex.ww.wp.xz.cn/Template_Tags/query_posts#Usage_Note
@ alchymyth
Thank you for the tips. I did look at the link for the $query_string that you provided, but am not sure that it applies in my case.
Basically in lines 30-34, 9-106, I’ve defined the variables for my query post for the archive listing which runs below the post defined by the main loop. In my case, I’m not drawing my parameters from the URL. Perhaps this is the reason why I’m having problems with pagination?
@shane
I appreciate the links, but don’t think that it applies to my problem; though will come in handy for another project.
So I did a bit more research on this problem online, and feel like I’m getting closer to the solution, but still can’t get the pagination to work.
http://www.wplover.com/756/how-to-get-custom-wp_query-loop-working-with-pagination-and-wp-pagenavi
http://www.martinish.com/blog/2009/08/how-to-paginate-a-custom-wordpress-query/4/
This time I created a new $wp_query:
$pargs = array(
'post__not_in' => array($post_ID),
'category_name' => $category_title,
'showposts' => '5',
'paged' => $paged,
);
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query($pargs);
and applied it directly to the code from the arras-theme:
`<ul class=”hfeed posts-quick clearfix”>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<li <?php arras_post_class() ?>>
<?php arras_projectheader($page_type) ?>
<div class=”entry-summary”><?php echo arras_strip_content(get_the_excerpt(), 20); ?></div>
<?php arras_newsfooter($page_type) ?>
<?php endwhile; ?>
`
then some $wp_query variable swapping for the WP-PageNavi plugin:
<?php
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
$wp_query = null; $wp_query = $temp; ?>
But still no dice. I know this is an oft-repeated topic, but I’m still unable to make this work. Is there anyone who can look at my code and suggest a solution?
http://pastebin.com/m373e62e7
Thank You!