Ticket #1896: meta-1896.patch
File meta-1896.patch, 951 bytes (added by , 9 years ago) |
---|
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
858 858 'speaker_link' => 'wporg', // anchor|wporg|permalink|none 859 859 'posts_per_page' => -1, 860 860 'orderby' => 'date', // date|title|rand 861 'order' => ' desc',// asc|desc861 'order' => 'asc', // asc|desc 862 862 ), $attr ); 863 863 864 864 // Convert bools to real booleans. … … 932 932 ); 933 933 } 934 934 935 // Order by session time. 936 if ( 'date' === $args['orderby'] ) { 937 $args['meta_key'] = '_wcpt_session_time'; 938 $args['orderby'] = 'meta_value_num'; 939 } 940 935 941 // Fetch sessions. 936 942 $sessions = new WP_Query( $args ); 937 943