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 ebfde74 commit 444aa57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ 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 = null, $echo = true, $params = [] ){
function botwiki_site_pagination( $wp_query = null, $echo = true, $params = [] ){
global $wp_query;

$big = 999999999;
Expand All @@ -334,12 +334,7 @@ function botwiki_site_pagination( $wp_query = null, $echo = true, $params = []

$pagination .= '</ul></div>';

if ( $echo ) {
echo $pagination;
} else {
return $pagination;
}

return $pagination;
}


Expand Down
2 changes: 1 addition & 1 deletion pagination.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- pagination -->
<div class="pagination justify-content-center mt-5 mb-2">
<?php botwiki_site_pagination(); ?>
<?php echo botwiki_site_pagination(); ?>
</div>
<!-- /pagination -->

0 comments on commit 444aa57

Please sign in to comment.