You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxono
8
8
9
9
Select sortable items from 'Intuitive CPT' menu of Setting menu in WordPress.
10
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.
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()` or `get_posts()`.<br>
12
+
ATTENTION: Only if you use `get_posts()`to re-overwrite to the default order( `orderby=date, order=DESC` ), You need to use own custom parameter `orderby=default_date`.
@@ -16,8 +16,8 @@ Intuitively, order items( Posts, Pages, and Custom Post Types, and Custom Taxono
16
16
17
17
Select sortable items from 'Intuitive CPT' menu of Setting menu in WordPress.
18
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.
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()' or 'get_posts()'.<br>
20
+
ATTENTION: Only if you use 'get_posts()' to re-overwrite to the default order( orderby=date, order=DESC ), You need to use own custom parameter 'orderby=default_date'.
21
21
22
22
This Plugin published on <a href="https://github.com/hijiriworld/intuitive-custom-post-order">GitHub.</a>
23
23
@@ -45,7 +45,24 @@ By using the 'WP_Query', you can re-override the parameters.
45
45
46
46
`
47
47
<?php $query = new WP_Query( array(
48
-
'orderby' => 'date',
48
+
'orderby' => 'ID',
49
+
'order' => 'DESC',
50
+
) ) ?>
51
+
`
52
+
53
+
* get_posts()
54
+
55
+
`
56
+
<?php $query = get_posts( array(
57
+
'orderby' => 'title',
58
+
) ) ?>
59
+
`
60
+
61
+
ATTENTION: Only if you use 'get_posts()' to re-overwrite to the default order( orderby=date, order=DESC ), You need to use own custom parameter 'orderby=default_date'.
62
+
63
+
`
64
+
<?php $query = get_posts( array(
65
+
'orderby' => 'default_date',
49
66
'order' => 'DESC',
50
67
) ) ?>
51
68
`
@@ -82,6 +99,11 @@ Go to "screen options" and change "Number of items per page:".
82
99
83
100
== Changelog ==
84
101
102
+
= 3.0.8 =
103
+
104
+
* Even for 'get_posts()', Your custom Query which uses the 'order' or 'orderby' parameters is preferred.
105
+
ATTENTION: Only if you use 'get_posts()' to re-overwrite to the default order( orderby=date, order=DESC ), You need to use own custom parameter 'orderby=default_date'.
106
+
85
107
= 3.0.7 =
86
108
87
109
* This plugin will imported listed above into the translate.wordpress.org translation system. Language packs will also be enabled for this plugin, for any locales that are fully translated (at 100%).
@@ -98,7 +120,7 @@ Go to "screen options" and change "Number of items per page:".
98
120
99
121
= 3.0.4 =
100
122
101
-
* Your Query which uses the 'order' or 'orderby' parameters is preferred.
123
+
* Your custom Query which uses the 'order' or 'orderby' parameters is preferred.
102
124
In order to prefer the parameters of your query, You must use the 'WP_Query()' or 'query_posts()'.
0 commit comments