WordPress.org

Forums

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

  1. Ajay
    Member
    Posted 1 year ago #

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

  2. karpstrucking
    Member
    Posted 1 year 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 3 months ago #

    ok thanx

Topic Closed

This topic has been closed to new replies.

About this Topic