Viewing 2 replies - 1 through 2 (of 2 total)
  • You can add support for WP-PageNavi like this:

    <?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    		// Display post here...
    	<?php endwhile; ?>
    	<?php if ( function_exists( 'wp_pagenavi' ) ) : ?>
    		<?php wp_pagenavi(); ?>
    	<?php else: ?>
    		// Fallback navigation using next_post_links() and previous_post_links()...
    	<?php endif; ?>
    <?php endif; ?>
    Thread Starter Ajay

    (@devtantra)

    ok thanx

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to use wp-pagenavi in publish theme’ is closed to new replies.