Add Pagination in custom Blog page template
The solution: The problem is $loop variable is not in global scope. So you need to add it to global in you blogslist.php file by adding global $loop; before $loop = new WP_Query($args); line. More Efficient Way: Alternatively, you can also pass $loop as an argument like this: function wpbeginner_numeric_posts_nav($loop) { // Codes here.. you … Read more