Title: [Plugin: WP-Paginate] where do I put the code block?
Last modified: August 19, 2016

---

# [Plugin: WP-Paginate] where do I put the code block?

 *  [mortonc](https://wordpress.org/support/users/mortonc/)
 * (@mortonc)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-paginate-where-do-i-put-the-code-block/)
 * here’s the end of my index.php file
 *     ```
       <div class="more_entries">
                           <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
                           <div class="fl"><?php next_posts_link(__('&laquo; Older Entries', 'woothemes')) ?></div>
       					<div class="fr"><?php previous_posts_link(__('Newer Entries &raquo;', 'woothemes')) ?></div>
                           <br class="fix" />
                           <?php } ?>
                       </div>		
   
       		</div><!-- /#main -->
   
               <?php get_sidebar(); ?>
   
           </div><!-- /#content -->
   
       <?php get_footer(); ?>
       ```
   
 * what do I need to replace.
 * Thank you very much.
 * [http://wordpress.org/extend/plugins/wp-paginate/](http://wordpress.org/extend/plugins/wp-paginate/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Eric](https://wordpress.org/support/users/emartin24/)
 * (@emartin24)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-paginate-where-do-i-put-the-code-block/#post-1845136)
 * Replace:
 * `<?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>`
 * with:
 * `<?php if (function_exists('wp_paginate')) wp_paginate(); else { ?>`
 * -Eric

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-Paginate] where do I put the code block?’ is closed to new
replies.

 * ![](https://ps.w.org/wp-paginate/assets/icon-128x128.png?rev=1566512)
 * [WP-Paginate](https://wordpress.org/plugins/wp-paginate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-paginate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-paginate/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-paginate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-paginate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-paginate/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eric](https://wordpress.org/support/users/emartin24/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-paginate-where-do-i-put-the-code-block/#post-1845136)
 * Status: not resolved