Add more parameters to next event function

This commit is contained in:
Brian Miyaji
2016-04-09 01:03:50 +10:00
parent aa8a42b168
commit fa7acb70c3
2 changed files with 11 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ if ( isset( $id ) ):
else:
$args = array();
if ( isset( $team ) )
$args = array( array( 'key' => 'sp_team', 'value' => $team ) );
$args = array( 'meta_query' => array( array( 'key' => 'sp_team', 'value' => $team ) ) );
$post = sp_get_next_event( $args );
endif;