Opened 14 years ago
Closed 11 years ago
#14478 closed enhancement (wontfix)
Allow explicit ordering of included posts in query_posts
Reported by: | daltonrooney | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
This is in reference to ticket #9819
I think it would be useful to add an extra orderby value to query_posts that could return posts based on the order they are listed.
So when you do query_posts("include=3,2,5,4,1&orderby=given")
They should be returned in the order 3,2,5,4,1
As mentioned by @dd32 in the previously referenced ticket, orderby=none returns the posts in MySQL Natural order, which is by ID.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Would it be better to name this 'orderby=include' to make it clear the source of the sort order is from the 'include' parameter?
So, it would be something like: query_posts("include=3,2,5,4,1&orderby=include")