Title: Match list team filter missing from code
Last modified: March 10, 2019

---

# Match list team filter missing from code

 *  Resolved [martincroker](https://wordpress.org/support/users/martincroker/)
 * (@martincroker)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/match-list-team-filter-missing-from-code/)
 * Not sure if this is also covered in the next version, but there also seems to
   be some constraints in the match_list shortcode, that means filtering by a single
   team is not possible.
 * Fixed by adding the following lines to wp-club-manager/includes/shortcodes/class-
   wpcm-shortcode-match-list.php
 * Line 30
    `$team = ( isset( $atts['team'] ) ? $atts['team'] : '' );`
 * Line 46
 *     ```
       		if( $team == '' )
       			$team = null;
       ```
   
 * Line 114
 *     ```
       			if ( isset( $team ) ) {
       				$query_args['tax_query'][] = array(
       					'taxonomy' => 'wpcm_team',
       					'terms' => $team,
       					'field' => 'term_id'
       				);
       			}
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [martincroker](https://wordpress.org/support/users/martincroker/)
 * (@martincroker)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/match-list-team-filter-missing-from-code/#post-11295738)
 * I should add that finding the root cause for both this and the previous issue
   took seconds, which reflects well for the structure and clarity of the code!
 *  Plugin Contributor [Leon](https://wordpress.org/support/users/leonterry/)
 * (@leonterry)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/match-list-team-filter-missing-from-code/#post-11295827)
 * Hi Martin,
 * Thanks for getting in touch with this issue and for your kind words 🙂
 * I’ll get this fixed today and release a 2.0.3 update.
 * Thanks again and enjoy your Sunday!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Match list team filter missing from code’ is closed to new replies.

 * ![](https://ps.w.org/wp-club-manager/assets/icon-256x256.png?rev=2376219)
 * [WP Club Manager - WordPress Sports Club Plugin](https://wordpress.org/plugins/wp-club-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-club-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-club-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-club-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-club-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-club-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Leon](https://wordpress.org/support/users/leonterry/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/match-list-team-filter-missing-from-code/#post-11295827)
 * Status: resolved