Changes between Version 1 and Version 2 of Ticket #28589, comment 1
- Timestamp:
- 06/21/2014 08:09:47 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28589, comment 1
v1 v2 1 This is not a bug. `orderby` doesn't accept anything other than a string, so what you're trying to pass (an array) is actually not support by `WP_Query`. You should alter your `orderby`-parameter (by using `orderby => 'meta_value_num'`, combined with the proper `meta_key` query parameter, for example).1 Welcome to the WordPress Core trac, and thanks for your report! This is not a bug in WordPress, however. `orderby` doesn't accept anything other than a string, so what you're trying to pass (an array) is actually not support by `WP_Query`. You should alter your `orderby`-parameter (by using `orderby => 'meta_value_num'`, combined with the proper `meta_key` query parameter, for example). 2 2 3 3 Closing as invalid.