Support » Plugin: WP-PageNavi » [Plugin: WP-PageNavi] also displaying only the first page

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey all,

    I’ve been ploughing through all the documentation I could find but I cannot get the pager to get past the first page. The pager shows up and displays the correct amount of paging elements yet when I click on “2”, for instance, the URL changes to /page/2 yet it shows page one only.

    Any advice/direction would be greatly appreciated.

    try this but make sure you backup first.

    <div id="inner-main-content">
    <?php while (have_posts()) : the_post(); ?>
    <h1><?php the_title(); ?></h1>
    <?php endwhile;?>
    <? $communityservice = "community-service"; ?>
    <?php $my_query = new WP_Query( array('category_name='.$communityservice.'&posts_per_page=1')); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div class="news-container">
    <?php the_post_thumbnail('updates-thumb'); ?>
    <div class="news-intro" style="float:left; margin-left:10px; width:350px;">
    " class="link-title"><?php the_title(); ?>
    <p style="font-size:11px; margin:2px 0px 2px 0px;"><i>Posted <?php echo get_the_date(); ?> at <?php echo get_the_time(); ?></i></p>
    <p style="line-height:17px;">
    <?php short_excerpt(180) ?>
    " class="read-more">read more <span class="meta-nav">→</span>
    <div class="clear"></div>
    <?php endwhile;?>
    <?php wp_pagenavi(array('query' => $my_query )); ?>

    at the magician, maybe you can probably change the name of one of the query because i see at the top that you have two $new_querys. Then run another wp_pagenavi with the new query name. Im not sure if it will work since im not a programmer so you probably understand it better than I if my suggestion will work or not.

    at the magician, or you can probably add a second $new_query to the wp pagenavi alone. Im not sure if this is how you would do this but, you might get what im talking about.

    wp_pagenavi(array(‘query’ => $new_query, $new_query ));

    @dre4000 Thanks for the help but I was able to figure out the problem after taking a much needed break from work I was able to see clearly…

    Just needed to change:
    'paged' => get_query_var('paged'))
    'paged' => get_query_var('page'))

    It’s detailed here (doh!):
    and the reason:

    For builds after 3.0.2


Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-PageNavi] also displaying only the first page’ is closed to new replies.