Changing Older/Newer posts for more advanced paging navigation
-
I am trying to change Older/Newer posts at the bottom of search result for more advanced paging navigation.
I would like to use the following plugin
WP-PageNavi
https://www.ads-software.com/plugins/wp-pagenavi/installation/
It requires us to change the code below.
I am trying to understand how I may do this with SoSimple?
If you have a better alternative, your suggestion is welcome.
Thank you for taking the time to reply.
*-*-*-*-*
UsageIn your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.
In the Twentyten theme, it looks like this:
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
You would replace those two lines with this:
<?php wp_pagenavi(); ?>
- The topic ‘Changing Older/Newer posts for more advanced paging navigation’ is closed to new replies.