Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support rashed848

    (@rashed848)

    Greetings!

    Thanks for reaching us.

    Right now, we do not have this feature available. I can certainly understand how that might be important for you, especially given the scenario you described.

    That being said, we aren’t planning on building this into our feature set at this point in time since it doesn’t fit into our current product roadmap. I’m going to pass along your thoughts and needs to our product development team, and I will let you know if this becomes something that we might build in the future.

    Please don’t hesitate to reach out if you have any other ideas.

    Kind Regards.

    Wait, you’re kidding me right? This is utterly essential for a userful search or filter plugin, why don’t you stipulate this on your website. I just spent hundreds of dollars for a plugin that can’t handle subcategory filtering with checkboxes? Who can I talk to about whether this will get integrated or not and if so on what timeline and if not why?

    Thread Starter nativa1

    (@nativa1)

    working fine in version Versión 7.1.2
    not working in Version 7.2.0

    /*
    multiple  directorist/templates/search-form/fields/category.php
    add in_cat[] y multiple al select
    
    directorist/includes/helper-functions.php linea 7494 
    para select multiple
    
    if(is_array($term_id)){
     $selected = in_array($term->term_id, $term_id) ? "selected" : '';
     }else{
     $selected = ($term_id == $term->term_id) ? "selected" : '';
    }
    //$selected = ($term_id == $term->term_id) ? "selected" : '';
    
    */
    
    add_filter( 'atbdp_listing_search_query_argument', function( $args ){
    
    if ( ! empty( $_GET['in_cat'] ) ) {
    	
    	$tax_queries = array();
    		
    	$ids = $_GET['in_cat'];
    	$categorias = array_map( 'intval', $ids );
    		
    	$tax_queries[] =  array(
                    'relation' => 'OR',
                    'post_type' => 'at_biz_dir',
    		        'orderby' => 'title',
    			    'order'   => $sort_ORD,
                    'tax_query' => array(
                        'taxonomy'  => ATBDP_CATEGORY,
                        'field'  => 'term_id',
                        //'terms'  => array(3,7),
    		    'terms'  => $categorias,
                        'operator'=> 'IN'
                      )); 
    		
    		
    		
    		if ( count( $tax_queries ) ) {
    			$args['tax_query'] = array_merge( array( 'relation' => 'AND' ), $tax_queries );
    		}
    		
    		$args['paged'] = max( get_query_var( 'paged' ), 1 );
    	}
    	
    	//echo get_query_var( 'paged' );
    	
    	
    	
    	//$args = $args_search_posts_meta;
    	
    	return $args;
    	
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Search Multiple Category?’ is closed to new replies.