Changes between Initial Version and Version 16 of Ticket #13729
- Timestamp:
- 09/05/2012 10:01:49 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13729
-
Property
Status
changed from
new
toaccepted
- Property Owner changed from ryan to jakemgold
-
Property
Milestone
changed from
3.1
toFuture Release
- Property Keywords 2nd-opinion has-patch added; post__in custom query orderby removed
-
Property
Status
changed from
-
Ticket #13729 – Description
initial v16 1 Post queries can specify the posts to retrieve by passing an array of post IDs to the "post__in"parameter.1 Post queries can specify the posts to retrieve by passing an array of post IDs to the {{{post__in}}} parameter. 2 2 3 There is no built in method for sorting those posts by the order specified. In fact, I would argue that when using "post__in", the post query should, by ''default'', order the posts in the same order specified in that array (I think this is the expected behavior by the developer).3 There is no built in method for sorting those posts by the order specified. In fact, I would argue that when using {{{post__in}}}, the post query should, by ''default'', order the posts in the same order specified in that array (I think this is the expected behavior by the developer). 4 4 5 5 Many custom themes allow the developer to specifically designate featured posts, controlling the order in which they appear. Many of these themes are forced to make independent queries for each post or execute an atypical loop by calling the result by ID (the post array's key). The ability to "fetch", properly order, and execute a standard loop for a specific set of posts in a specific order would reduce overhead and complexity in these situations.