diff --git a/admin/hooks/pre-get-posts.php b/admin/hooks/pre-get-posts.php index 26b67bfd..a99253f0 100644 --- a/admin/hooks/pre-get-posts.php +++ b/admin/hooks/pre-get-posts.php @@ -2,6 +2,9 @@ function sportspress_pre_get_posts( $query ) { if ( is_admin() ): + if ( isset( $query->query[ 'orderby' ] ) || isset( $query->query[ 'order' ] ) ): + return $query; + endif; $post_type = $query->query['post_type']; if ( in_array( $post_type, array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic' ) ) ):