Changes between Initial Version and Version 2 of Ticket #19833
- Timestamp:
- 01/15/2012 01:19:16 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19833
- Property Milestone Awaiting Review
- Property Resolution → duplicate
- Property Status new → closed
-
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 }}}
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)