It’s surprisingly easy actually… you just need to make sure you edit the theme in all the right places.

I used this resource here to guide me on how to best to achieve this:

Code example after the link…

Just replace the existing navigation functions with this code, obviously after previously installing WP-Pagenavi first!



<?php if(function_exists(‘wp_pagenavi’)) { // if PageNavi is activated ?>
<?php wp_pagenavi(); // Use PageNavi ?>
<?php } else { // Otherwise, use traditional Navigation ?>
<!– next_post_link –>
<!– previous_post_link –>
<?php } // End if-else statement ?>



GD Star Rating
How to build WP Pagenavi into your WordPress theme, 4.5 out of 10 based on 4 ratings

Related Posts: