Created
March 5, 2020 15:32
-
-
Save Sharifur/61824ceec24d7fd37442a6c7b1bdfe24 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
<?php | |
$big = 999999999; | |
$pagination_args = array( | |
'base' => str_replace('%_%', 1 == $paged ? '' : "?page=%#%", "?page=%#%"), | |
'format' => '?page=%#%', | |
'total' => $all_downloads->max_num_pages, | |
'current' => max( 1, $paged ), | |
'show_all' => false, | |
'prev_text' => '<i class="fa fa-angle-double-left"></i>', | |
'next_text' => '<i class="fa fa-angle-double-right"></i>', | |
'prev_next' => true, | |
); | |
echo paginate_links( $pagination_args ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment