- This topic has 13 replies, 2 voices, and was last updated 8 years, 3 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › user specific results
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.