Home / Web & PC stuff / Wordpress / How to build WP Pagenavi into your WordPress theme

How to build WP Pagenavi into your WordPress theme

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: http://themeshaper.com/how-to-build-wp-pagenavi-into-your-wordpress-theme/

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:

About Matt

I have a keen interest in technology, social media, digital trends, web development, news and current affairs, fitness, personal finance as well as general interesting stuff I find online. My blog is a collection of resources, information and thoughts that I've captured and write mainly for my own reference, but also so that others may benefit from what I find and write about too. Professionally, I'm a marcomms specialist living in the North West of England, but mainly working in London. I have an MBA, am a member of the Chartered Institute of Marketing, have a wife and son, and find the biggest challenge of all is finding the time to fit all my interests in to the time I have available.

Check Also

Good plugin: WordPress Socializer

I’ve come across another good plugin that I like and have decided to add to ...


  1. The most difficult thing is to find a blog with unique and fresh content but i think you offer something different. Keep it like this.

  2. Hey, i think you visited my website so here i am!.I am trying to find things to improve my blog!Is it ok if i use some of the things i saw here?!

Leave a Reply

Your email address will not be published. Required fields are marked *