Changes between Initial Version and Version 1 of Ticket #17065, comment 55
- Timestamp:
- 01/16/2014 11:32:05 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17065, comment 55
initial v1 5 5 }}} 6 6 is very good how to use it? 7 Can i use sql hack for now? 7 8 9 Now im using this hack to order multiple: 10 11 12 {{{ 13 'orderby' => 'post_name meta_value_num', 14 'order' => 'DESC', 15 }}} 16 17 And add this hack 18 19 20 {{{ 21 add_filter( 'posts_orderby', 'filter_query', 999); 22 function filter_query( $query ) { 23 $query .= ', '.$wpdb->posts.post_name.' ASC'; 24 return $query; 25 } 26 }}} 27 Here we can order meta_value_num width 'order' => 'DESC', 28 and we can order - post_name width the hack. 29 30 31 32