Clean up config settings page tables

This commit is contained in:
Brian Miyaji
2014-01-04 13:19:42 +11:00
parent b5263009c1
commit 6cf7e5b77e
11 changed files with 55 additions and 25 deletions

View File

@@ -121,6 +121,9 @@ function sp_pre_get_posts( $wp_query ) {
if ( in_array( $post_type, array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic' ) ) ):
$wp_query->set( 'orderby', 'menu_order' );
$wp_query->set( 'order', 'ASC' );
elseif ( $post_type == 'sp_event' ):
$wp_query->set( 'orderby', 'post_date' );
$wp_query->set( 'order', 'ASC' );
endif;
endif;
}