Reply To: asp_results filter gives result where there is none…

Home Forums Product Support Forums Ajax Search Pro for WordPress Support asp_results filter gives result where there is none… Reply To: asp_results filter gives result where there is none…

#7285
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

The issue is that there are keyword suggestions returned, but the filter is still executed. It’s my mistake, I accidentally changed this part in the recent version, and the “asp_results” filter executes when there are no result returned.

Try adding this line as the first line to your function:

if ( !empty($results['nores'] ) return $results;

That should terminate execution if there are keyword suggestion available as result.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)