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…
January 11, 2016 at 11:00 am
#7285
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 :)
![](https://wp-dreams.com/assets/envato/comment-button-knowledgebase.png)
![](https://wp-dreams.com/assets/envato/comment-button-support.png)
![](https://wp-dreams.com/assets/envato/comment-button-facebook.png)
![](https://wp-dreams.com/assets/envato/comment-button-twitter.png)