Post Types Order - Version 1.9.3.3

Version Description

  • Plugin option to include query argument ASC / DESC
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 Post Types Order
Version 1.9.3.3
Comparing to
See all releases

Code changes from version 1.9.3.2 to 1.9.3.3

include/class.cpto.php CHANGED
@@ -175,7 +175,9 @@
175
  if($query->is_search())
176
  return($orderBy);
177
 
178
- $order = isset($query->query_vars['order']) ? " " . $query->query_vars['order'] : '';
 
 
179
 
180
  if ($options['autosort'] == "1")
181
  {
175
  if($query->is_search())
176
  return($orderBy);
177
 
178
+ $order = '';
179
+ if ($options['use_query_ASC_DESC'] == "1")
180
+ $order = isset($query->query_vars['order']) ? " " . $query->query_vars['order'] : '';
181
 
182
  if ($options['autosort'] == "1")
183
  {
include/class.functions.php CHANGED
@@ -44,6 +44,7 @@
44
  'show_reorder_interfaces' => array(),
45
  'autosort' => 1,
46
  'adminsort' => 1,
 
47
  'archive_drag_drop' => 1,
48
  'capability' => 'install_plugins',
49
  'navigation_sort_apply' => 1,
44
  'show_reorder_interfaces' => array(),
45
  'autosort' => 1,
46
  'adminsort' => 1,
47
+ 'use_query_ASC_DESC' => '',
48
  'archive_drag_drop' => 1,
49
  'capability' => 'install_plugins',
50
  'navigation_sort_apply' => 1,
include/class.options.php CHANGED
@@ -32,6 +32,7 @@
32
 
33
  $options['autosort'] = isset($_POST['autosort']) ? intval($_POST['autosort']) : '';
34
  $options['adminsort'] = isset($_POST['adminsort']) ? intval($_POST['adminsort']) : '';
 
35
  $options['archive_drag_drop'] = isset($_POST['archive_drag_drop']) ? intval($_POST['archive_drag_drop']) : '';
36
 
37
  $options['navigation_sort_apply'] = isset($_POST['navigation_sort_apply']) ? intval($_POST['navigation_sort_apply']) : '';
@@ -132,6 +133,15 @@
132
  </td>
133
  </tr>
134
 
 
 
 
 
 
 
 
 
 
135
  <tr valign="top">
136
  <th scope="row" style="text-align: right;"><label for="archive_drag_drop"><?php _e('Archive Drag&Drop ', 'post-types-order') ?></label></th>
137
  <td>
32
 
33
  $options['autosort'] = isset($_POST['autosort']) ? intval($_POST['autosort']) : '';
34
  $options['adminsort'] = isset($_POST['adminsort']) ? intval($_POST['adminsort']) : '';
35
+ $options['use_query_ASC_DESC'] = isset($_POST['use_query_ASC_DESC']) ? intval($_POST['use_query_ASC_DESC']) : '';
36
  $options['archive_drag_drop'] = isset($_POST['archive_drag_drop']) ? intval($_POST['archive_drag_drop']) : '';
37
 
38
  $options['navigation_sort_apply'] = isset($_POST['navigation_sort_apply']) ? intval($_POST['navigation_sort_apply']) : '';
133
  </td>
134
  </tr>
135
 
136
+ <tr valign="top">
137
+ <th scope="row" style="text-align: right;"><label for="archive_drag_drop"><?php _e('Use query ASC / DESC parameter ', 'post-types-order') ?></label></th>
138
+ <td>
139
+ <p>
140
+ <input type="checkbox" <?php checked( '1', $options['use_query_ASC_DESC'] ); ?> id="use_query_ASC_DESC" value="1" name="use_query_ASC_DESC">
141
+ <?php _e("If the query include an Ascending or Descending order paramether, use that. If query order is set to DESC the order will be reversed.", 'post-types-order') ?>.</p>
142
+ </td>
143
+ </tr>
144
+
145
  <tr valign="top">
146
  <th scope="row" style="text-align: right;"><label for="archive_drag_drop"><?php _e('Archive Drag&Drop ', 'post-types-order') ?></label></th>
147
  <td>
languages/post-types-order.mo CHANGED
Binary file
languages/post-types-order.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Types Order\n"
4
- "POT-Creation-Date: 2017-06-10 18:20+0200\n"
5
- "PO-Revision-Date: 2017-06-10 18:20+0200\n"
6
  "Last-Translator: NspCode <contact@nsp-code.com>\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
@@ -13,179 +13,189 @@ msgstr ""
13
  "X-Poedit-Basepath: ../\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
16
- #: include/class.cpto.php:197
17
  msgid "Post Types Order must be configured. Please go to"
18
  msgstr ""
19
 
20
- #: include/class.cpto.php:197
21
  msgid "Settings Page"
22
  msgstr ""
23
 
24
- #: include/class.cpto.php:197
25
  msgid "make the configuration and save"
26
  msgstr ""
27
 
28
- #: include/class.cpto.php:475 include/class.cpto.php:477
29
- #: include/class.cpto.php:480 include/class.cpto.php:491
30
  msgid "Re-Order"
31
  msgstr ""
32
 
33
- #: include/class.cpto.php:499
34
  msgid ""
35
  "This plugin can't work without javascript, because it's use drag and drop "
36
  "and AJAX."
37
  msgstr ""
38
 
39
- #: include/class.cpto.php:512
40
  msgid "Update"
41
  msgstr ""
42
 
43
- #: include/class.cpto.php:533
44
  msgid "Items Order Updated"
45
  msgstr ""
46
 
47
- #: include/class.functions.php:102
48
  msgid ""
49
  "Did you find this plugin useful? Please support our work by purchasing the "
50
  "advanced version or write an article about this plugin in your blog with a "
51
  "link to our site"
52
  msgstr ""
53
 
54
- #: include/class.functions.php:103
55
  msgid "Did you know there is available an Advanced version of this plug-in?"
56
  msgstr ""
57
 
58
- #: include/class.functions.php:103
59
  msgid "Read more"
60
  msgstr ""
61
 
62
- #: include/class.functions.php:104
63
  msgid "Check our"
64
  msgstr ""
65
 
66
- #: include/class.functions.php:104
67
  msgid ""
68
  "plugin which allow to custom sort categories and custom taxonomies terms"
69
  msgstr ""
70
 
71
- #: include/class.functions.php:105
72
  msgid "Check out"
73
  msgstr ""
74
 
75
- #: include/class.functions.php:105
76
  msgid ""
77
  "the easy way to completely hide your WordPress core files, theme and plugins"
78
  msgstr ""
79
 
80
- #: include/class.functions.php:140 include/class.functions.php:219
81
  #, php-format
82
  msgid "Use commas instead of %s to separate excluded terms."
83
  msgstr ""
84
 
85
- #: include/class.options.php:38
86
  msgid "Settings Saved"
87
  msgstr ""
88
 
89
- #: include/class.options.php:55
90
  msgid "General Settings"
91
  msgstr ""
92
 
93
- #: include/class.options.php:61
94
  msgid "General"
95
  msgstr ""
96
 
97
- #: include/class.options.php:65
98
  msgid "Show / Hide re-order interface"
99
  msgstr ""
100
 
101
- #: include/class.options.php:92
102
  msgid "Show"
103
  msgstr ""
104
 
105
- #: include/class.options.php:93
106
  msgid "Hide"
107
  msgstr ""
108
 
109
- #: include/class.options.php:100
110
  msgid "Minimum Level to use this plugin"
111
  msgstr ""
112
 
113
- #: include/class.options.php:103
114
  msgid "Subscriber"
115
  msgstr ""
116
 
117
- #: include/class.options.php:104
118
  msgid "Contributor"
119
  msgstr ""
120
 
121
- #: include/class.options.php:105
122
  msgid "Author"
123
  msgstr ""
124
 
125
- #: include/class.options.php:106
126
  msgid "Editor"
127
  msgstr ""
128
 
129
- #: include/class.options.php:107
130
  msgid "Administrator"
131
  msgstr ""
132
 
133
- #: include/class.options.php:114
134
  msgid "Auto Sort"
135
  msgstr ""
136
 
137
- #: include/class.options.php:116
138
  msgid ""
139
  "If checked, the plug-in automatically update the WordPress queries to use "
140
  "the new order (<b>No code update is necessarily</b>)"
141
  msgstr ""
142
 
143
- #: include/class.options.php:117
144
  msgid ""
145
  "If only certain queries need to use the custom sort, keep this unchecked and "
146
  "include 'orderby' => 'menu_order' into query parameters"
147
  msgstr ""
148
 
149
- #: include/class.options.php:119
150
  msgid "Additional Description and Examples"
151
  msgstr ""
152
 
153
- #: include/class.options.php:126
154
  msgid "Admin Sort"
155
  msgstr ""
156
 
157
- #: include/class.options.php:130
158
  msgid ""
159
  "To affect the admin interface, to see the post types per your new sort, this "
160
  "need to be checked"
161
  msgstr ""
162
 
163
- #: include/class.options.php:135
 
 
 
 
 
 
 
 
 
 
164
  msgid "Archive Drag&Drop "
165
  msgstr ""
166
 
167
- #: include/class.options.php:139
168
  msgid ""
169
  "Allow sortable drag & drop functionality within default WordPress post type "
170
  "archive. Admin Sort need to be active."
171
  msgstr ""
172
 
173
- #: include/class.options.php:144
174
  msgid "Next / Previous Apply"
175
  msgstr ""
176
 
177
- #: include/class.options.php:148
178
  msgid "Apply the sort on Next / Previous site-wide navigation."
179
  msgstr ""
180
 
181
- #: include/class.options.php:148
182
  msgid "This can also be controlled through"
183
  msgstr ""
184
 
185
- #: include/class.options.php:148
186
  msgid "code"
187
  msgstr ""
188
 
189
- #: include/class.options.php:156
190
  msgid "Save Settings"
191
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Types Order\n"
4
+ "POT-Creation-Date: 2017-07-17 16:03+0200\n"
5
+ "PO-Revision-Date: 2017-07-17 16:03+0200\n"
6
  "Last-Translator: NspCode <contact@nsp-code.com>\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
13
  "X-Poedit-Basepath: ../\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
16
+ #: include/class.cpto.php:207
17
  msgid "Post Types Order must be configured. Please go to"
18
  msgstr ""
19
 
20
+ #: include/class.cpto.php:207
21
  msgid "Settings Page"
22
  msgstr ""
23
 
24
+ #: include/class.cpto.php:207
25
  msgid "make the configuration and save"
26
  msgstr ""
27
 
28
+ #: include/class.cpto.php:485 include/class.cpto.php:487
29
+ #: include/class.cpto.php:490 include/class.cpto.php:501
30
  msgid "Re-Order"
31
  msgstr ""
32
 
33
+ #: include/class.cpto.php:509
34
  msgid ""
35
  "This plugin can't work without javascript, because it's use drag and drop "
36
  "and AJAX."
37
  msgstr ""
38
 
39
+ #: include/class.cpto.php:522
40
  msgid "Update"
41
  msgstr ""
42
 
43
+ #: include/class.cpto.php:543
44
  msgid "Items Order Updated"
45
  msgstr ""
46
 
47
+ #: include/class.functions.php:104
48
  msgid ""
49
  "Did you find this plugin useful? Please support our work by purchasing the "
50
  "advanced version or write an article about this plugin in your blog with a "
51
  "link to our site"
52
  msgstr ""
53
 
54
+ #: include/class.functions.php:105
55
  msgid "Did you know there is available an Advanced version of this plug-in?"
56
  msgstr ""
57
 
58
+ #: include/class.functions.php:105
59
  msgid "Read more"
60
  msgstr ""
61
 
62
+ #: include/class.functions.php:106
63
  msgid "Check our"
64
  msgstr ""
65
 
66
+ #: include/class.functions.php:106
67
  msgid ""
68
  "plugin which allow to custom sort categories and custom taxonomies terms"
69
  msgstr ""
70
 
71
+ #: include/class.functions.php:107
72
  msgid "Check out"
73
  msgstr ""
74
 
75
+ #: include/class.functions.php:107
76
  msgid ""
77
  "the easy way to completely hide your WordPress core files, theme and plugins"
78
  msgstr ""
79
 
80
+ #: include/class.functions.php:142 include/class.functions.php:221
81
  #, php-format
82
  msgid "Use commas instead of %s to separate excluded terms."
83
  msgstr ""
84
 
85
+ #: include/class.options.php:40
86
  msgid "Settings Saved"
87
  msgstr ""
88
 
89
+ #: include/class.options.php:57
90
  msgid "General Settings"
91
  msgstr ""
92
 
93
+ #: include/class.options.php:63
94
  msgid "General"
95
  msgstr ""
96
 
97
+ #: include/class.options.php:67
98
  msgid "Show / Hide re-order interface"
99
  msgstr ""
100
 
101
+ #: include/class.options.php:94
102
  msgid "Show"
103
  msgstr ""
104
 
105
+ #: include/class.options.php:95
106
  msgid "Hide"
107
  msgstr ""
108
 
109
+ #: include/class.options.php:102
110
  msgid "Minimum Level to use this plugin"
111
  msgstr ""
112
 
113
+ #: include/class.options.php:105
114
  msgid "Subscriber"
115
  msgstr ""
116
 
117
+ #: include/class.options.php:106
118
  msgid "Contributor"
119
  msgstr ""
120
 
121
+ #: include/class.options.php:107
122
  msgid "Author"
123
  msgstr ""
124
 
125
+ #: include/class.options.php:108
126
  msgid "Editor"
127
  msgstr ""
128
 
129
+ #: include/class.options.php:109
130
  msgid "Administrator"
131
  msgstr ""
132
 
133
+ #: include/class.options.php:116
134
  msgid "Auto Sort"
135
  msgstr ""
136
 
137
+ #: include/class.options.php:118
138
  msgid ""
139
  "If checked, the plug-in automatically update the WordPress queries to use "
140
  "the new order (<b>No code update is necessarily</b>)"
141
  msgstr ""
142
 
143
+ #: include/class.options.php:119
144
  msgid ""
145
  "If only certain queries need to use the custom sort, keep this unchecked and "
146
  "include 'orderby' => 'menu_order' into query parameters"
147
  msgstr ""
148
 
149
+ #: include/class.options.php:121
150
  msgid "Additional Description and Examples"
151
  msgstr ""
152
 
153
+ #: include/class.options.php:128
154
  msgid "Admin Sort"
155
  msgstr ""
156
 
157
+ #: include/class.options.php:132
158
  msgid ""
159
  "To affect the admin interface, to see the post types per your new sort, this "
160
  "need to be checked"
161
  msgstr ""
162
 
163
+ #: include/class.options.php:137
164
+ msgid "Use query ASC / DESC parameter "
165
+ msgstr ""
166
+
167
+ #: include/class.options.php:141
168
+ msgid ""
169
+ "If the query include an Ascending or Descending order paramether, use that. "
170
+ "If query order is set to DESC the order will be reversed."
171
+ msgstr ""
172
+
173
+ #: include/class.options.php:146
174
  msgid "Archive Drag&Drop "
175
  msgstr ""
176
 
177
+ #: include/class.options.php:150
178
  msgid ""
179
  "Allow sortable drag & drop functionality within default WordPress post type "
180
  "archive. Admin Sort need to be active."
181
  msgstr ""
182
 
183
+ #: include/class.options.php:155
184
  msgid "Next / Previous Apply"
185
  msgstr ""
186
 
187
+ #: include/class.options.php:159
188
  msgid "Apply the sort on Next / Previous site-wide navigation."
189
  msgstr ""
190
 
191
+ #: include/class.options.php:159
192
  msgid "This can also be controlled through"
193
  msgstr ""
194
 
195
+ #: include/class.options.php:159
196
  msgid "code"
197
  msgstr ""
198
 
199
+ #: include/class.options.php:167
200
  msgid "Save Settings"
201
  msgstr ""
post-types-order.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.nsp-code.com
5
  Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
- Version: 1.9.3.2
9
  Text Domain: post-types-order
10
  Domain Path: /languages/
11
  */
5
  Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
+ Version: 1.9.3.3
9
  Text Domain: post-types-order
10
  Domain Path: /languages/
11
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.nsp-code.com/donate.php
4
  Tags: post order, posts order, sort, post sort, posts sort, post type order, custom order, admin posts order
5
  Requires at least: 2.8
6
  Tested up to: 4.8
7
- Stable tag: 1.9.3.2
8
 
9
  Post Order and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard.
10
 
@@ -93,6 +93,9 @@ Consider upgrading to our advanced version of this plugin at a very resonable pr
93
 
94
  == Change Log ==
95
 
 
 
 
96
  = 1.9.3.2 =
97
  - Include ASC / DESC if there is a query order argument
98
  - Avada fix 'product_orderby' ignore
4
  Tags: post order, posts order, sort, post sort, posts sort, post type order, custom order, admin posts order
5
  Requires at least: 2.8
6
  Tested up to: 4.8
7
+ Stable tag: 1.9.3.3
8
 
9
  Post Order and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard.
10
 
93
 
94
  == Change Log ==
95
 
96
+ = 1.9.3.3 =
97
+ - Plugin option to include query argument ASC / DESC
98
+
99
  = 1.9.3.2 =
100
  - Include ASC / DESC if there is a query order argument
101
  - Avada fix 'product_orderby' ignore