• Resolved webipsum

    (@ipsum)


    Hi.

    WP_Pagenavi: Works:

    <div id="content">
    	<?php $query = new WP_Query('cat=8&posts_per_page=6' . '&paged=' . $paged); ?>
    	<?php if ($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?>
    	<div class="list_posts">
    		<?php the_content(); ?>
    	</div><!-- list_posts -->
    	<?php endwhile; ?>
    		<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(array( 'query' => $query )); endif; ?>
    	<?php else : ?>
    	<?php endif; ?>
    </div><!-- content -->

    But if I include: offset, don’t works:

    <?php $query = new WP_Query('cat=8&posts_per_page=6$offset=3' . '&paged=' . $paged); ?>

    Please, any tips?.

    Tks a lot.

    {ipsum}

Viewing 16 replies (of 16 total)
  • Hello,

    I have same problem here , i have query like this

    $post_info = $wpdb->get_results($srch_sql);

    Searching works perfectly and pagination looks fine but when i navigate the next page i m facing 404 page.

    can anybody solve my problem…….?

    Thanks

Viewing 16 replies (of 16 total)
  • The topic ‘[Plugin: WP-PageNavi] wp_pagenavi does not work with offset?’ is closed to new replies.