Reply To: Minimal Character and Default Result

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Minimal Character and Default Result Reply To: Minimal Character and Default Result


Ernest Marcinko

Hi Femi,

Thank you for the proper details, it helps me a lot 🙂

1. On the General Options -> Mobile behavior panel the Trigger for mobile devices option was turned off. I have enabled it, now it should work after clearing your front-end cache.

2. Well, there is not really an option for that, but it might be possible with a custom code. I have constructed a script, which will execute after the search process is completed, and if there are no results, it will execute another query to get the items as defined.

Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

Change the $ids array to the item ID (or comma separated post IDs if more), and it should do the trick. Let me know if you need help with this.

Ernest Marcinko

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