This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Display results as default

#27464
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

In that case, this variation will pass the search ID as an argument, so you can check that in the code:

add_filter( 'asp_results', 'asp_custom_link_results', 10, 2 );
function asp_custom_link_results( $results, $search_id ) {
	if ( $search_id == 1 ) {
		foreach ($results as $k=> &$r) {
			$r->link  = '#';
		}
	}
	return $results;
}