codesplice
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Search with Algolia] Random number of products per pageHi Richard,
Thank you very much for the plugin update. Just tested the code with new version and we are getting expected output for most of the search terms except for those where search result count exceeds 1000. In that case we get 404 error after first 40 pages eg. tools.
We do not have many such terms so not worried about it. Happy with the solution! Really appreciate all the help and support.Kind Regards
Forum: Plugins
In reply to: [WP Search with Algolia] Random number of products per pageThanks Richard for your support. Just wanted to let you know that the theme we are using is WoodMart.
Forum: Plugins
In reply to: [WP Search with Algolia] Random number of products per pageThanks Richard for the code, just tried it out.
Now I get exactly 10 products on first few pages and 404 errors on all other pages.
Suppose I search term ‘tools’ then I get 1340 results. with your code I get 134 pages, first 40 pages or so with 10 products on them and rest of the pages with 404 error.
https://www.frost.co.uk/?s=tools&post_type=productForum: Plugins
In reply to: [WP Search with Algolia] Random number of products per pageHi Michael,
Thanks for your reply. We have woocommerce plugins installed but I don’t think any of them interferes with search functionality or page layouts.
I just hard coded the $posts_per_page variable in class-algolia-search.php on line 52 like:
$posts_per_page = 25; // we have Number of products per page = 25 for shop page
and this did the trick 🙂
Could you please let me know whether this is the right approach or not? Will this have any side effect?Kind regards