[wp-trac] [WordPress Trac] #29716: orderby for meta values is broken in 4.0
WordPress Trac
noreply at wordpress.org
Sun Sep 21 00:05:23 UTC 2014
#29716: orderby for meta values is broken in 4.0
-------------------------------+------------------------------
Reporter: devarni | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by kitchin):
* keywords: => reporter-feedback
Comment:
Did that work in a development version of 4.0? The structure to use is:
{{{
'meta_key' => 'date',
'orderby' => array('meta_value' => 'DESC'),
}}}
or the old style
{{{
'meta_key' => 'date',
'orderby' => 'meta_value'.
'order' => 'DESC',
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29716#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list