Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #19833


Ignore:
Timestamp:
01/15/2012 01:19:16 AM (12 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19833

    • Property Status changed from new to closed
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #19833 – Description

    initial v2  
    11Hello
    2 I followed the syntax of the codex to sort by two criteria of custom fields, but unfortunately it does not work[[BR]]
     2I followed the syntax of the codex to sort by two criteria of custom fields, but unfortunately it does not work.
    33
    4 http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters[[BR]]
     4http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
    55
    6 It accepts only one custom field[[BR]]
     6It accepts only one custom field:
    77
     8{{{
    89$args = array(
    910'post_type' => 'post_type',
     
    1112'orderby' => 'custom_field1 custom_field2',     
    1213'order' => 'ASC');
    13 [[BR]]
    1414
    1515$query = new WP_Query( $args );
    16 [[BR]]
    17 
    18 thank you
     16}}}