Intuitive Custom Post Order - Version 3.0.6

Version Description

  • Support 'next_post_link()' and 'previous_post_link(), etc.
    • Parameters( $in_same_term, $excluded_terms, $taxonomy ) works perfectly.
Download this release

Release Info

Developer hijiri
Plugin Icon 128x128 Intuitive Custom Post Order
Version 3.0.6
Comparing to
See all releases

Code changes from version 3.0.5 to 3.0.6

Files changed (3) hide show
  1. README.md +4 -4
  2. intuitive-custom-post-order.php +3 -3
  3. readme.txt +12 -6
README.md CHANGED
@@ -4,9 +4,9 @@
4
 
5
  ## Description
6
 
7
- Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxonomies ) using a drag and drop sortable JavaScript.<br>
8
- Configuration is unnecessary.<br>
9
- You can do directly on default WordPress administration.
10
 
11
  In addition, You can re-override the parameters of `orderby` and `order`, by using the `WP_Query` or `pre_get_posts` or `query_posts`.<br>
12
  The `get_posts()` is excluded.
@@ -15,7 +15,7 @@ The `get_posts()` is excluded.
15
 
16
  1. Upload 'intuitive-custom-post-order' folder to the `/wp-content/plugins/` directory.
17
  2. Activate the plugin through the 'Plugins' menu in WordPress.
18
- 3. Select sortable items from 'Intuitive CPT' menu in WordPress.
19
 
20
  ## Documentation
21
 
4
 
5
  ## Description
6
 
7
+ Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxonomies ) using a drag and drop sortable JavaScript.
8
+
9
+ Select sortable items from 'Intuitive CPT' menu of Setting menu in WordPress.
10
 
11
  In addition, You can re-override the parameters of `orderby` and `order`, by using the `WP_Query` or `pre_get_posts` or `query_posts`.<br>
12
  The `get_posts()` is excluded.
15
 
16
  1. Upload 'intuitive-custom-post-order' folder to the `/wp-content/plugins/` directory.
17
  2. Activate the plugin through the 'Plugins' menu in WordPress.
18
+ 3. Select sortable items from 'Intuitive CPT' menu of Setting menu in WordPress.
19
 
20
  ## Documentation
21
 
intuitive-custom-post-order.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Intuitive Custom Post Order
4
  Plugin URI: http://hijiriworld.com/web/plugins/intuitive-custom-post-order/
5
  Description: Intuitively, Order Items (Posts, Pages, and Custom Post Types and Custom Taxonomies) using a Drag and Drop Sortable JavaScript.
6
- Version: 3.0.5
7
  Author: hijiri
8
  Author URI: http://hijiriworld.com/web/
9
  License: GPLv2 or later
@@ -357,7 +357,7 @@ class Hicpo
357
 
358
  if ( isset( $post->post_type ) && in_array( $post->post_type, $objects ) ) {
359
  $current_menu_order = $post->menu_order;
360
- $where = "WHERE p.menu_order > '".$current_menu_order."' AND p.post_type = '". $post->post_type ."' AND p.post_status = 'publish'";
361
  }
362
  return $where;
363
  }
@@ -384,7 +384,7 @@ class Hicpo
384
 
385
  if ( isset( $post->post_type ) && in_array( $post->post_type, $objects ) ) {
386
  $current_menu_order = $post->menu_order;
387
- $where = "WHERE p.menu_order < '".$current_menu_order."' AND p.post_type = '". $post->post_type ."' AND p.post_status = 'publish'";
388
  }
389
  return $where;
390
  }
3
  Plugin Name: Intuitive Custom Post Order
4
  Plugin URI: http://hijiriworld.com/web/plugins/intuitive-custom-post-order/
5
  Description: Intuitively, Order Items (Posts, Pages, and Custom Post Types and Custom Taxonomies) using a Drag and Drop Sortable JavaScript.
6
+ Version: 3.0.6
7
  Author: hijiri
8
  Author URI: http://hijiriworld.com/web/
9
  License: GPLv2 or later
357
 
358
  if ( isset( $post->post_type ) && in_array( $post->post_type, $objects ) ) {
359
  $current_menu_order = $post->menu_order;
360
+ $where = str_replace( "p.post_date < '".$post->post_date."'", "p.menu_order > '".$current_menu_order."'", $where );
361
  }
362
  return $where;
363
  }
384
 
385
  if ( isset( $post->post_type ) && in_array( $post->post_type, $objects ) ) {
386
  $current_menu_order = $post->menu_order;
387
+ $where = str_replace( "p.post_date > '".$post->post_date."'", "p.menu_order < '".$current_menu_order."'", $where );
388
  }
389
  return $where;
390
  }
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Intuitive Custom Post Order ===
2
  Contributors: hijiri
 
3
  Tags: post order, posts order, order post, order posts, custom post type order, custom taxonomy order
4
  Requires at least: 3.5.0
5
- Tested up to: 4.2.2
6
- Stable tag: 3.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,9 +12,9 @@ Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxono
11
 
12
  == Description ==
13
 
14
- Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxonomies ) using a drag and drop sortable JavaScript.<br>
15
- Configuration is unnecessary.<br>
16
- You can do directly on default WordPress administration.
17
 
18
  In addition, You can re-override the parameters of 'orderby' and 'order', by using the 'WP_Query' or 'pre_get_posts' or 'query_posts()'.<br>
19
  The 'get_posts()' is excluded.
@@ -24,7 +25,7 @@ This Plugin published on <a href="https://github.com/hijiriworld/intuitive-custo
24
 
25
  1. Upload 'intuitive-custom-post-order' folder to the `/wp-content/plugins/` directory.
26
  2. Activate the plugin through the 'Plugins' menu in WordPress.
27
- 3. Select sortable items from 'Intuitive CPT' menu in WordPress.
28
 
29
  == Screenshots ==
30
 
@@ -78,6 +79,11 @@ add_action( 'pre_get_posts', 'my_filter' );
78
 
79
  == Changelog ==
80
 
 
 
 
 
 
81
  = 3.0.5 =
82
 
83
  * Fixed bug
1
  === Intuitive Custom Post Order ===
2
  Contributors: hijiri
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TT5NP352P6MCU
4
  Tags: post order, posts order, order post, order posts, custom post type order, custom taxonomy order
5
  Requires at least: 3.5.0
6
+ Tested up to: 4.2.3
7
+ Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxonomies ) using a drag and drop sortable JavaScript.
16
+
17
+ Select sortable items from 'Intuitive CPT' menu of Setting menu in WordPress.
18
 
19
  In addition, You can re-override the parameters of 'orderby' and 'order', by using the 'WP_Query' or 'pre_get_posts' or 'query_posts()'.<br>
20
  The 'get_posts()' is excluded.
25
 
26
  1. Upload 'intuitive-custom-post-order' folder to the `/wp-content/plugins/` directory.
27
  2. Activate the plugin through the 'Plugins' menu in WordPress.
28
+ 3. Select sortable items from 'Intuitive CPT' menu of Setting menu in WordPress.
29
 
30
  == Screenshots ==
31
 
79
 
80
  == Changelog ==
81
 
82
+ = 3.0.6 =
83
+
84
+ * Support 'next_post_link()' and 'previous_post_link(), etc.
85
+ - Parameters( $in_same_term, $excluded_terms, $taxonomy ) works perfectly.
86
+
87
  = 3.0.5 =
88
 
89
  * Fixed bug