Skip to content

Commit

Permalink
Merge pull request #10 from contactashish13/issue-267
Browse files Browse the repository at this point in the history
not working on inner pages
  • Loading branch information
rodica-andronache authored Jul 6, 2018
2 parents 3909bb7 + a38cf24 commit 27e237a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion widgets/elementor/posts-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,10 @@ protected function render() {

// Pagination.
if ( ! empty( $settings['grid_pagination'] ) ) {
$paged = get_query_var( 'page', 1 );
$paged = get_query_var( 'paged' );
if ( empty( $paged ) ) {
$paged = get_query_var( 'page' );
}
$args['paged'] = $paged;
}

Expand Down

0 comments on commit 27e237a

Please sign in to comment.