Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
The search results page is controlled by the currently active theme (or page builder plugin in some cases). Unfortunately search plugins can’t affect the layout.
If you are using WooCommerce by any chance, you can set the plugin to direct to the WooCommerce results template here: https://i.imgur.com/1Q9mvys.png
Usually that makes a big difference, as by default the “normal” results page is used.Ernest Marcinko
KeymasterHi,
I believe the best solution to this is described in this knowledge base.
Ernest Marcinko
KeymasterHi,
It’s hard to tell, usually the best course of action is to clear all layers of cache first: page, minify, CDN, cloudflare, that usually fixes issues.
If that doesn’t work, can you please share a URL where I can check the problem? I can probably tell by looking at it.
Ernest Marcinko
KeymasterHi,
I’m afraid sorting filters are not yet implemented in ajax search pro – however they will be added within a future release for sure. I usually recommend a custom code where it’s possible, but this is far more complicated than that.
December 31, 2024 at 12:31 pm in reply to: API REST stops working in version 4.26.12 – 2024-06-25 #52381Ernest Marcinko
KeymasterThanks!
Ajax Search Pro is however deactivated now, and I can’t access the plugins to activate it: https://i.imgur.com/o3Iuy7B.png
Ernest Marcinko
KeymasterThank you!
Can you please send me link to an article which should be shown but it is not showing? I tried to look for the “interwiew” category, but I can’t find it.
December 30, 2024 at 3:25 pm in reply to: Items showing in quick search, but not on search results page #52378Ernest Marcinko
KeymasterYou cannot access this content.
December 30, 2024 at 3:23 pm in reply to: Items showing in quick search, but not on search results page #52376Ernest Marcinko
KeymasterYou are welcome!
Yes – that’s actually WooCommerce doing it not the search plugin, whenever it detects a single match, WooCommerce will automatically direct to that.
December 30, 2024 at 3:19 pm in reply to: API REST stops working in version 4.26.12 – 2024-06-25 #52374Ernest Marcinko
KeymasterThanks, that works!
Unfortunately when I try to access the API endpoints, I get a critical error as another plugin tries to allocate memory: https://i.imgur.com/XmsRFGU.png
You may have too many plugins active and the memory is running out, or there is an isssue in the “integromat connector” plugin (see screenshot).Let me know when it’s resolved and I try again.
December 30, 2024 at 3:07 pm in reply to: Items showing in quick search, but not on search results page #52373Ernest Marcinko
KeymasterHi!
The issue here is, that those two results are not actually matches for that search phrase, but predictive search matches. The plugin found a different phrase “IXA94RGJ” to match these items.
These results are nearly impossible to populate to the search results page, however there is one option you can try: https://i.imgur.com/MwuYxwk.png
After turning that on, the plugin will try a secondary override with the autocorrected phrase.Ernest Marcinko
KeymasterPefrect!
I have managed to put together a fairly tiny code snippet, which seems to be working. I have placed it into the code snippet plugin you are using under the name “Ajax Search Pro – Today filter”.
I have also changed the filter to a radio button, with a yes/no option. When “Yes” is clicked, then only results matching todays date should be displayed.
For future reference, here is the custom code, it turned out to be only a few lines:
add_filter('asp_query_args', function($args){ foreach ( $args['post_meta_filter'] as $k => &$filter ) { if ( $filter['key'] !== 'days_worked' ) { continue; } if ( $filter['value'] === 'no' ) { unset($args['post_meta_filter'][$k]); } $filter['value'] = date('Y-m-d'); } return $args; });Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterCan I see and test this somewhere? I’m not sure I follow the exact setup here.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts