Fix team filtering and add taxonomy links
This commit is contained in:
@@ -4,7 +4,7 @@ function sportspress_parse_query( $query ) {
|
||||
|
||||
if ( is_admin() && $pagenow == 'edit.php' ):
|
||||
|
||||
if( in_array( $typenow, array( 'sp_event', 'sp_table', 'sp_player', 'sp_list', 'sp_staff' ) ) && isset( $_GET['team'] ) ):
|
||||
if( in_array( $typenow, array( 'sp_event', 'sp_table', 'sp_player', 'sp_list', 'sp_staff' ) ) && isset( $_GET['team'] ) && $_GET['team'] != null ):
|
||||
$query->query_vars['meta_key'] = 'sp_team';
|
||||
$query->query_vars['meta_value'] = $_GET['team'];
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user