Post Grid - Version 2.0.39

Version Description

  • 22/08/2019 fix - Offset issue with pagination conflict issue fixed.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Post Grid
Version 2.0.39
Comparing to
See all releases

Code changes from version 2.0.38 to 2.0.39

Files changed (3) hide show
  1. post-grid.php +2 -2
  2. readme.txt +4 -1
  3. templates/query.php +2 -1
post-grid.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Grid by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
5
  Description: Awesome post grid for query post from any post type and display on grid.
6
- Version: 2.0.38
7
  Author: PickPlugins
8
  Author URI: https://www.pickplugins.com/
9
  License: GPLv2 or later
@@ -26,7 +26,7 @@ if( !class_exists( 'PostGrid' )){
26
  define('post_grid_pro_url', 'https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/');
27
  define('post_grid_qa_url', 'https://www.pickplugins.com/forum/');
28
  define('post_grid_plugin_name', 'Post Grid');
29
- define('post_grid_version', '2.0.38');
30
 
31
 
32
  include('includes/classes/class-post-grid-support.php');
3
  Plugin Name: Post Grid by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
5
  Description: Awesome post grid for query post from any post type and display on grid.
6
+ Version: 2.0.39
7
  Author: PickPlugins
8
  Author URI: https://www.pickplugins.com/
9
  License: GPLv2 or later
26
  define('post_grid_pro_url', 'https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/');
27
  define('post_grid_qa_url', 'https://www.pickplugins.com/forum/');
28
  define('post_grid_plugin_name', 'Post Grid');
29
+ define('post_grid_version', '2.0.39');
30
 
31
 
32
  include('includes/classes/class-post-grid-support.php');
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
  Requires at least: 3.8
6
  Tested up to: 5.2
7
- Stable tag: 2.0.38
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,9 @@ then paste this shortcode anywhere in your page to display grid<br />
139
 
140
  == Changelog ==
141
 
 
 
 
142
  = 2.0.38 =
143
  * 18/07/2019 update - Search input field loading icon changed.
144
  * 18/07/2019 update - Default layout element title replaced by title with linked and thumbnail linked with post url
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
  Requires at least: 3.8
6
  Tested up to: 5.2
7
+ Stable tag: 2.0.39
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 2.0.39 =
143
+ * 22/08/2019 fix - Offset issue with pagination conflict issue fixed.
144
+
145
  = 2.0.38 =
146
  * 18/07/2019 update - Search input field loading icon changed.
147
  * 18/07/2019 update - Default layout element title replaced by title with linked and thumbnail linked with post url
templates/query.php CHANGED
@@ -309,7 +309,8 @@ if(!empty($paged))
309
  $default_query_args['paged'] = $paged;
310
 
311
  if(!empty($offset))
312
- $default_query_args['offset'] = $offset;
 
313
 
314
  if(!empty($tax_query))
315
  $default_query_args['tax_query'] = $tax_query;
309
  $default_query_args['paged'] = $paged;
310
 
311
  if(!empty($offset))
312
+ $default_query_args['offset'] = $offset + ( ($paged-1) * $posts_per_page );
313
+
314
 
315
  if(!empty($tax_query))
316
  $default_query_args['tax_query'] = $tax_query;