• I’m testing the default wordpress search function out ( i.e. get_query_var(‘s’) ), and the QMT widget doesn’t seem to be working as expected.

    The URL for each taxonomy link is created correctly, i.e. “/?s=search-term&categoria=rock” but the widget is showing *all* taxonomies as if there was no search term. My expectation is that it only shows the taxonomy terms that are present in the current search.

    Where can I get started in troubleshooting this? Thanks!

    I also have the following functions, but I disabled them and the issue with search was still there:

    // QMT RESET
    	function my_qmt_reset_url( $reset_url ) {
    		if(is_tax('alfa') || is_tax('genero')) {
    			if( isset($_GET) && isset($_GET['orden'])) {
    	    		return '/artistas-lista/?orden=fecha';
    	    	} else {
    	    		return '/artistas-lista/';
    	    	}
    		}
    
    		if(tribe_is_upcoming() && tribe_is_event() || tribe_is_past()) {
    	    	return '/agenda/';
    		}
    
    		if( tribe_is_day() ) {
    			$eventDate = get_query_var('eventDate');
    			return '/agenda/'.$eventDate.'/';
    		}
    
    		if( is_bam_venue() ) {
    	    	return '/lugares/';
    		}
    	}
    	add_filter( 'qmt_reset_url', 'my_qmt_reset_url' );
    
    	function my_qmt_base_url( $base ) {
    		if(isset($_GET['orden'])) {
    			$orden = $_GET['orden'];
    		    $additional_args = array(
    				'orden' => $orden
    		    );
    	   		return add_query_arg( $additional_args, '');
    		}
    
    		if(isset($_GET['s'])) {
    			$search = $_GET['s'];
    		    $additional_args = array(
    				's' => $search
    		    );
    	   		return add_query_arg( $additional_args, '');
    		}
    
    		if(tribe_is_upcoming() && tribe_is_event() || tribe_is_day() || tribe_is_past()) {
    	    	return '/agenda/';
    		}
    	}
    
    	add_filter( 'qmt_base_url', 'my_qmt_base_url' );

    https://www.ads-software.com/extend/plugins/query-multiple-taxonomies/

  • The topic ‘[Plugin: Query Multiple Taxonomies] Filtering not working with search’ is closed to new replies.