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

Reply To: Display results as default

#27463
wallytor72wallytor72
Participant

I was using this,`but it change all the result pages of the search in the site, as i have 2 different ones then it change for 2 but i need that this change apply in a just one search

add_filter( ‘asp_results’, ‘asp_custom_link_results’, 1, 1 );

function asp_custom_link_results( $results ) {

// Parse through each result item
foreach ($results as $k=>$v) {
/**
* In this context the
* $results[$k]->link
* variable holds the result link. Make modifications to that variable.
*/
$results[$k]->link = ‘#’;
}

return $results;
}