Skip to content

Commit

Permalink
Fixed pagination.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Jul 16, 2020
1 parent 1655f5e commit ebfde74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,8 @@ function my_remove_recent_comments_style(){
}

// Pagination for paged posts, Page 1, Page 2, Page 3, with Next and Previous Links, No plugin
function botwiki_site_pagination( \WP_Query $wp_query = null, $echo = true, $params = [] ){
if ( null === $wp_query ) {
global $wp_query;
}
function botwiki_site_pagination( $wp_query = null, $echo = true, $params = [] ){
global $wp_query;

$big = 999999999;
$pages = paginate_links( array_merge( array(
Expand Down

0 comments on commit ebfde74

Please sign in to comment.