[wp-trac] [WordPress Trac] #17065: Independent ASC/DESC in multiple ORDER BY statement.
WordPress Trac
noreply at wordpress.org
Thu Sep 12 01:54:42 UTC 2013
#17065: Independent ASC/DESC in multiple ORDER BY statement.
-------------------------------------------------+-------------------------
Reporter: ericmann | Owner: ericmann
Type: enhancement | Status: new
Priority: normal | Milestone: 3.7
Component: Query | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- |
tests |
-------------------------------------------------+-------------------------
Comment (by jameslnewell):
I just submitted a [https://github.com/WordPress/WordPress/pull/47 github]
PR for this before seeing the comments on the other PRs to use trac
(apologies).
As described there my proposed syntax is:
{{{
$query = new WP_Query(array(
'orderby' => 'menu_order date',
'order' => 'DESC ASC',
));
}}}
I *think* this patch should just work with the existing meta columns too?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17065#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list