Created
November 28, 2018 15:07
-
-
Save masumskaib396/40cc85d292ba8be0bb3be4f397f41583 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sakib_paginate_links(){ | |
global $wp_query; | |
$paginate_links = paginate_links( array( | |
'current' => max( 1, get_query_var('paged') ), | |
'total' => $wp_query->max_num_pages, | |
'type' => 'list', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment