'sp_staff', 'numberposts' => 500, 'posts_per_page' => 500, 'orderby' => 'title', 'order' => 'ASC', 'tax_query' => array( 'relation' => 'AND', ), ); if ( $league_ids ): $args['tax_query'][] = array( 'taxonomy' => 'sp_league', 'field' => 'term_id', 'terms' => $league_ids ); endif; if ( $season_ids ): $args['tax_query'][] = array( 'taxonomy' => 'sp_season', 'field' => 'term_id', 'terms' => $season_ids ); endif; if ( $team && apply_filters( 'sportspress_has_teams', true ) ): $args['meta_query'] = array( array( 'key' => 'sp_team', 'value' => $team ), ); endif; $staffs = get_posts( $args ); $options = array(); if ( $staffs && is_array( $staffs ) ): foreach ( $staffs as $staff ): $options[] = ''; endforeach; endif; if ( sizeof( $options ) > 1 ): ?>