Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi,
Yes! It is possible via a custom code snippet:
add_filter("asp_query_args", "asp_query_args_apply_date", 10, 2); function asp_query_args_apply_date($args, $search_id) { $args['post_meta_filter'][] = array( 'key' => '_EventStartDate', 'value' => date('Y-m-d'), 'operator' => '>=', 'allow_missing' => false ); return $args; }Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
If you are using the snippets plugin, make sure the code can run everywhere.
Ernest Marcinko
KeymasterAll right, that might indicate a conflict or a bug then.
Can you please add temporary back-end and (s)FTP details? I would like to debug the issue to see what exactly is going on in the codebase.
Ernest Marcinko
KeymasterYou are welcome!
what about the problem with the regular search link?
Make sure to select the default search bars the same as the header search (search ID=3). That should resolve it.Ernest Marcinko
KeymasterHi,
Thank you for all the details, it helps a lot!
The most likely cause is that those results might be unrelated to the taxonomy, which by default are not excluded. Make sure to turn off this option, it will very likely resolve the problem.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterIt could happen, yes – as I don’t have a ready made code to test, this needs to be experimented with. With SFTP access I can correct any mistake immediately, while the file manager will not work if I make any mistakes. It would be much safer to use direct access.
Do you have a test or staging environment by any chance? I would much rather do index code experiments on a non-live site.
Ernest Marcinko
KeymasterHi Sandra,
The “long” url triggers the search override itself, that is perfectly fine. It’s generated when you search via the plugin search form.
Because you can have multiple search instances, some parateters have to be passed so the plugin knows which one is the override coming from.There still might be a way to force the override on the shorter urls. Can you please try changing the default search bars here: https://i.imgur.com/evdHspT.png
When the replacement is active, it should automatically override the search results from with the selected search bar.Ernest Marcinko
KeymasterYou are welcome!
I don’t think there is a way to do that via settings I’m afraid. Products are not actually the files, they are two separate entities. There might be some hacky way to get around it, but I’m not sure.
Can you add temporary SFTP access, I might have to test some customized code to see if there is any way to do this.
Ernest Marcinko
KeymasterI see – you are looking for this feature. Make sure to de-select the taxonomy terms as results, as I suspect you don’t want those 🙂
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterI assume then I choose product and not attachment for “Post types to index”?
Yes – exactly.March 1, 2025 at 9:50 am in reply to: media results: elementor generated thumbnails and other items showing #53157Ernest Marcinko
KeymasterYou cannot access this content.
February 28, 2025 at 5:20 pm in reply to: media results: elementor generated thumbnails and other items showing #53155Ernest Marcinko
KeymasterHi,
The most likely cause is that those are the “unrelated” items, which does not belong to any taxonomy. Can you please make sure to turn off this option, it should change the output a lot.
Ernest Marcinko
KeymasterI usually recommend a custom code where it’s possible, but this is a lot more complicated unfortunately. This has to be implemented fully from top-down, so a few hundred lines of code is no bueno.
I am affiliated with a very talented group of devs at wpkraken, they did a few jobs on our plugin in the past for customization. Try asking for a quote, they might have done this before.
Ernest Marcinko
KeymasterYes of course, sorry I was not clicking the “select all”.
The reason is, that the whole page is live loaded, including the search, which resets under that condition. This can be fixed by either turning off the live loader, or using this DOM selector here to only reload the results part:
#content>.row>.col:not(.post-sidebar)That should do the trick.
-
AuthorPosts