user specific results

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)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.