Use only league events in table

This commit is contained in:
Brian Miyaji
2014-03-16 14:18:55 +11:00
parent f2c55dd79e
commit 6a7f4d1d9f

View File

@@ -1496,9 +1496,14 @@ if ( !function_exists( 'sportspress_get_team_columns_data' ) ) {
'posts_per_page' => -1,
'order' => 'ASC',
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'sp_team',
'value' => $post_id
),
array(
'key' => 'sp_format',
'value' => 'league'
)
),
'tax_query' => array(
@@ -1512,7 +1517,7 @@ if ( !function_exists( 'sportspress_get_team_columns_data' ) ) {
'taxonomy' => 'sp_season',
'field' => 'id',
'terms' => $div_id
)
),
)
);
$events = get_posts( $args );