Add more parameters to next event function
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user