Opened 7 years ago
Last modified 7 years ago
#4347 new enhancement
"Order & Orderby Parameters" section in manually curated part of the code reference for WP_Query doesn't mention ordering by meta_query clauses
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Developer Hub | Keywords: | |
| Cc: |
Description
WP 4.2 introduced the ability to "name" clauses in meta_query and to use those "names" in orderby.
It would be nice if the "Order & Orderby Parameters" mentioned that ability and gave an example of its use.
The last example in that section (as of 2019-03-29) does include a meta_query but the orderby in that example is meta_value_num and not a "named" clause in the meta_query.
Change History (3)
This ticket was mentioned in Slack in #meta by tellyworth. View the logs.
7 years ago
This ticket was mentioned in Slack in #meta-devhub by tellyworth. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
Just a note that this is referring to https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters