Use term_id where appropriate

This commit is contained in:
Brian Miyaji
2016-07-30 02:25:02 +10:00
parent 963bbe15e2
commit 0d0c4dde3a
7 changed files with 22 additions and 22 deletions

View File

@@ -183,7 +183,7 @@ class SP_Calendar extends SP_Custom_Post {
if ( isset( $league_ids ) ) {
$args['tax_query'][] = array(
'taxonomy' => 'sp_league',
'field' => 'id',
'field' => 'term_id',
'terms' => $league_ids
);
}
@@ -191,7 +191,7 @@ class SP_Calendar extends SP_Custom_Post {
if ( isset( $season_ids ) ) {
$args['tax_query'][] = array(
'taxonomy' => 'sp_season',
'field' => 'id',
'field' => 'term_id',
'terms' => $season_ids
);
}
@@ -199,7 +199,7 @@ class SP_Calendar extends SP_Custom_Post {
if ( isset( $venue_ids ) ) {
$args['tax_query'][] = array(
'taxonomy' => 'sp_venue',
'field' => 'id',
'field' => 'term_id',
'terms' => $venue_ids
);
}