Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #28589, comment 1


Ignore:
Timestamp:
06/21/2014 08:09:47 AM (9 years ago)
Author:
engelen
Comment:

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).
     1Welcome 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).
    22
    33Closing as invalid.