Skip to content

Commit

Permalink
not working on inner pages
Browse files Browse the repository at this point in the history
  • Loading branch information
contactashish13 committed Jul 5, 2018
1 parent 2d4cba7 commit a38cf24
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 a38cf24

Please sign in to comment.