multible meta_key orderby
-
hello,
I would like to sort by meta_key st_date asc and st_time asc.
Currently I can only order it for st_date asc
Here are the args for the query
$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' );
I hope in your suggestion.
Thanks to all
- The topic ‘multible meta_key orderby’ is closed to new replies.