This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 18,418 total)
  • Author
    Posts
  • in reply to: can I exclude past events? #53195
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    in reply to: Issue with Search URL Not Returning Results #53193
    Ernest MarcinkoErnest Marcinko
    Keymaster

    All 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.

    in reply to: Issue with Search URL Not Returning Results #53189
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You 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.

    in reply to: Drop Down Search is not resulting in correct results #53188
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    in reply to: Installation and SQL #53187
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search results content #53186
    Ernest MarcinkoErnest Marcinko
    Keymaster

    It 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.

    in reply to: Issue with Search URL Not Returning Results #53178
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi 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.

    in reply to: Search results content #53177
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You 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.

    in reply to: Product Filter Options #53171
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I 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 🙂

    in reply to: Refind #53170
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search results content #53169
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I assume then I choose product and not attachment for “Post types to index”?
    Yes – exactly.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    in reply to: Need help create filters for custom post #53154
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I 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.

    in reply to: Search issues #53153
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes 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.

Viewing 15 posts - 1,276 through 1,290 (of 18,418 total)