Changes between Initial Version and Version 1 of Ticket #17065, comment 19
- Timestamp:
- 12/06/2011 01:13:25 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17065, comment 19
initial v1 1 hello,2 Only you can help me!3 4 I would like to sort by meta_key "st_date" asc and "st_time" asc.5 6 but currently I can only order it for "st_date" asc7 8 here is the query9 10 11 12 {{{13 $args = array('tax_query' => array(array('taxonomy' => 'eventcategory','field' => 'slug','terms' => array( 'proiezioni', 'incontri'))), 'meta_query'=>array('relation'=>'AND', array('key'=>'st_date','value'=>$roxy2,'type'=>'date','compare'=>'<='), array('key'=>'end_date','value'=>$roxy,'type'=>'date','compare'=>'>=')), 'post_type'=>'event', 'showposts'=>60, 'post_status'=>'publish', 'orderby'=>'meta_value', 'meta_key'=>'st_date', 'order'=>'asc');14 }}}15 16 I hope in your suggestion.17 18 Thanks to all