How to build WP Pagenavi into your WordPress theme
Posted on November 25th, 2010 in Wordpress
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 ?>
<div>
<!– next_post_link –>
</div>
<div>
<!– previous_post_link –>
</div>
<?php } // End if-else statement ?>
<br>
GD Star Rating
loading...
How to build WP Pagenavi into your WordPress theme, loading...
Related Posts:
Tags: wordpress
This post has 2 comments
December 7th, 2010
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.
December 8th, 2010
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?!