• Resolved martincroker

    (@martincroker)


    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

    (@martincroker)

    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

    (@leonterry)

    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.