Hey, you. Here is the solution. It's working without plugin, very good for you.
1. Paste this code into functions.php or custom-functions.php
<?php
#Page Navi
function page_navi($before = '', $after = '') {
global $wpdb, $wp_query;
$request = $wp_query->request;
$posts_per_page =...