How to add page navi


#1

I have tried many time to put Page navi to my blog but didnt work, I would love to have 1,2,3,4,5,6,7,8,9 to navigate my page rather than OLDER POSTS and NEWER POSTS Button…any idea?


#2

Hi,

You can install plugin WP-PageNavi https://wordpress.org/plugins/wp-pagenavi/ , after that you will have to change theme folder / index.php this line http://screencast.com/t/85Kpdkjk5oa5:
<?php areview_paging_nav(); ?>

with http://screencast.com/t/KuvVU3WmCyX this:

<?php if ( function_exists('wp_pagenavi') ) {
	wp_pagenavi();
} else
	areview_paging_nav();
?>

New code is checked with an IF statement so if WP pagenavi plugin is not present default theme navigation will be loaded instead.

Result should look like this http://screencast.com/t/YLO5x3yphX

Please consider using child theme for this kind of modifications (and create changes to index.php file from child theme folder), since changes will be lost on next theme update.

Best Regards