name; endforeach; $data[ __( 'Leagues', 'sportspress' ) ] = implode( ', ', $leagues ); endif; $terms = get_the_terms( $id, 'sp_season' ); if ( $terms ): $seasons = array(); foreach ( $terms as $term ): $seasons[] = $term->name; endforeach; $data[ __( 'Seasons', 'sportspress' ) ] = implode( ', ', $seasons ); endif; $terms = get_the_terms( $id, 'sp_venue' ); if ( $terms ): if ( get_option( 'sportspress_team_link_venues', 'no' ) === 'yes' ): $data[ __( 'Home', 'sportspress' ) ] = get_the_term_list( $id, 'sp_venue' ); else: $venues = array(); foreach ( $terms as $term ): $venues[] = $term->name; endforeach; $data[ __( 'Home', 'sportspress' ) ] = implode( ', ', $venues ); endif; endif; $output = '