• Resolved nolaflash

    (@nolaflashcom)


    In source of plugin you just check for cat, not cats as arg. So cats=’foo,bar’ fails but cat=’foo’ or cat=’foo,bar’ works.

    // Category
    		if ( $atts['cat'] ) {
    			if ( strpos( $atts['cat'], "," ) !== false ) {
    				$atts['cats'] = explode( ",", $atts['cat'] );
    				$atts['cats'] = array_map( 'trim', $atts['cats'] );
    			} else {
    				$atts['cats'] = $atts['cat'];
    			}

    https://www.ads-software.com/plugins/the-events-calendar/

  • The topic ‘Issue with short codes cat/cats’ is closed to new replies.