Page navigation doesn’t show when query category

Problem: when I do www.example.com?cat=4 or choose category through custom menu or from category widget it shows only first page without navigation at the bottom, where it supposed to be. It’s the same if I use index.php or category-slug.php as template. For test, when I do www.example.com?year=2012 it works. Also, www.example.com?cat=4&paged=2 works. So it must … Read more

WP-PageNavi not working on Custom page Template

this is my code in Custom page Template <?php query_posts(‘showposts=8’); ?> <?php $count = 1; if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?> & this is wp_pagenavi code <div class=”more_entries”> <?php if (function_exists(‘wp_pagenavi’)) wp_pagenavi(); else { ?><?php } ?></div> </div> page numbers showing but navigation not working 1 Answer 1 Looks … Read more

How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I’ve also posted this on the wordpress support forums, for scribu’s wp-pagenavi plugin: http://wordpress.org/support/topic/plugin-wp-pagenavi-custom-query-form-submit-part-2?replies=1 My situation: I am using a form … Read more

wp_pagenavi() with custom wp_query()?

<?php /* Template Name: Projects */ ?> <?php get_header();?> <section id=”content”> <section id=”main”> <?php $loop = new WP_Query(array(‘post_type’ => ‘projects’, ‘posts_per_page’ => 4)); $i=1; while ( $loop->have_posts() ) : $loop->the_post(); ?> <article class=”post<?php if($i%2 == 0) { echo ‘ right’; }; $i++; ?>” id=”post-<?php the_ID(); ?>”> <h2><?php the_title(); ?></h2> <section class=”entry”> <?php the_excerpt(); ?> </section> … Read more