Use only league events in table
This commit is contained in:
@@ -1496,9 +1496,14 @@ if ( !function_exists( 'sportspress_get_team_columns_data' ) ) {
|
|||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
'meta_query' => array(
|
'meta_query' => array(
|
||||||
|
'relation' => 'AND',
|
||||||
array(
|
array(
|
||||||
'key' => 'sp_team',
|
'key' => 'sp_team',
|
||||||
'value' => $post_id
|
'value' => $post_id
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'key' => 'sp_format',
|
||||||
|
'value' => 'league'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'tax_query' => array(
|
'tax_query' => array(
|
||||||
@@ -1512,7 +1517,7 @@ if ( !function_exists( 'sportspress_get_team_columns_data' ) ) {
|
|||||||
'taxonomy' => 'sp_season',
|
'taxonomy' => 'sp_season',
|
||||||
'field' => 'id',
|
'field' => 'id',
|
||||||
'terms' => $div_id
|
'terms' => $div_id
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$events = get_posts( $args );
|
$events = get_posts( $args );
|
||||||
|
|||||||
Reference in New Issue
Block a user