Changes between Initial Version and Version 2 of Ticket #19833
- Timestamp:
- 01/15/2012 01:19:16 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19833
-
Property
Status
changed from
new
toclosed
-
Property
Resolution
changed from
to
duplicate
-
Property
Milestone
changed from
Awaiting Review
to
-
Property
Status
changed from
-
Ticket #19833 – Description
initial v2 1 1 Hello 2 I followed the syntax of the codex to sort by two criteria of custom fields, but unfortunately it does not work [[BR]]2 I followed the syntax of the codex to sort by two criteria of custom fields, but unfortunately it does not work. 3 3 4 http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters [[BR]]4 http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters 5 5 6 It accepts only one custom field [[BR]]6 It accepts only one custom field: 7 7 8 {{{ 8 9 $args = array( 9 10 'post_type' => 'post_type', … … 11 12 'orderby' => 'custom_field1 custom_field2', 12 13 'order' => 'ASC'); 13 [[BR]]14 14 15 15 $query = new WP_Query( $args ); 16 [[BR]] 17 18 thank you 16 }}}