Forums Forums Search & Filter Pro user specific results

Viewing 4 posts - 11 through 14 (of 14 total)
  • Anonymous
    #134204

    Hello Trevior – this ist great, thanks I will test it, so for this case I even don’t need a custom result page, right?
    Did you have the time to look in my other issue with the empty results?

    Thanks a lot for your support
    Best
    P.

    Trevor
    #134234

    As for no results, is that code snippet part of a set of code that calls the header?

    Anonymous
    #134719

    Hello Trevor,

    I’ve tried

    function filter_function_name( $query_args, $sfid ) {
        
        $cat_id = array(1);
    	
    	//if search form ID = 225, the do something with this query
    	if($sfid==32)
        {
            $query_args = array(
    		 'category__in' => array($cat_id),
                );
    	}
    	
    	return $query_args;
    }
    add_filter( 'sf_edit_query_args', 'filter_function_name', 20, 2 );
    

    Is that right? It returns no results – seems not to extend the query ?

    Best
    P.

    Trevor
    #134778

    This is in your child theme functions.php?

Viewing 4 posts - 11 through 14 (of 14 total)