WordPress.org

Forums

how to use wp-pagenavi in publish theme (3 posts)

  1. Ajay
    Member
    Posted 9 months ago #

    i want to add wp-pagenavi plugin or pagination in my publish theme

  2. karpstrucking
    Member
    Posted 9 months ago #

    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; ?>
  3. Ajay
    Member
    Posted 5 days ago #

    ok thanx

Reply

You must log in to post.

About this Topic