Use term_id where appropriate
This commit is contained in:
@@ -60,7 +60,7 @@ class SP_League_Table extends SP_Custom_Post{
|
||||
if ( $league_ids ):
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_league',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => $league_ids
|
||||
);
|
||||
endif;
|
||||
@@ -68,7 +68,7 @@ class SP_League_Table extends SP_Custom_Post{
|
||||
if ( $season_ids ):
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_season',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => $season_ids
|
||||
);
|
||||
endif;
|
||||
@@ -202,7 +202,7 @@ class SP_League_Table extends SP_Custom_Post{
|
||||
if ( $league_ids ):
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_league',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => $league_ids
|
||||
);
|
||||
endif;
|
||||
@@ -210,7 +210,7 @@ class SP_League_Table extends SP_Custom_Post{
|
||||
if ( $season_ids ):
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'sp_season',
|
||||
'field' => 'id',
|
||||
'field' => 'term_id',
|
||||
'terms' => $season_ids
|
||||
);
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user