Title: Pagination code don&#8217;t work
Last modified: March 21, 2018

---

# Pagination code don’t work

 *  [Divvy](https://wordpress.org/support/users/divvy/)
 * (@divvy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/pagination-code-dont-work/)
 * Hello,
 * I’m having some issues adding a pagination on a specific page.
    Can someone help
   me?
 * I want to use this plugin to insert pagination with the following code:
    `<?php
   wp_pagenavi(); ?>`
 * When I add this code, the pagination doesn’t appear.
 * The only pagination code I can make to work:
 *     ```
       <?php
       next_posts_link( 'Older Entries', $loop->max_num_pages );
       previous_posts_link( ' - Newer Entries' );
       ?>
       ```
   
 * But it’s very ugly and I need to replace with the above one.
 * What could be?
 * My code: [https://paste2.org/CpmZDs8x](https://paste2.org/CpmZDs8x)
 * Thanks in advance!

The topic ‘Pagination code don’t work’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Divvy](https://wordpress.org/support/users/divvy/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/pagination-code-dont-work/)
 * Status: not resolved