Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #972993

    I receive this error briefly when typing in a search keyword.
    Sorry, no posts matched your criteria
    Please try another search term
    However, if I press the enter key, it in fact locates the items. How do I get rid of this?

    • This topic was modified 6 years, 6 months ago by hostworks.
    #973023

    As an update, I followed your technote to make SearchWP the search engine and it made NO difference:

    Use SearchWP instead of the standard search
    SearchWP is an advanced search engine for WordPress. You can use it with Enfold without any additional configuration. If you want to use it with the ajax search function (preview search results when you click on the magnifier icon) then insert this code into the child theme functions.php file or into the enfold/functions.php file:

    add_filter( ‘avf_ajax_search_function’, ‘avia_init_searchwp’, 10, 4 );

    function avia_init_searchwp( $function_name, $search_query, $search_parameters, $defaults ) {
    $function_name = class_exists( ‘SearchWP’ ) ? ‘avia_searchwp_search’ : $function_name;
    return $function_name;
    }

    function avia_searchwp_search( $search_query, $search_parameters, $defaults ) {
    $searchwp = SearchWP::instance();
    $engine_name = ‘default’; // you can swap in your Supplemental Search Engine name
    parse_str( $search_query, $output );
    $search_string = isset( $output[‘s’] ) ? sanitize_text_field( urldecode( $output[‘s’] ) ) : ”;

    // limit the results to 5
    function avia_searchwp_search_num_results() {
    return 5;
    }
    add_filter( ‘searchwp_posts_per_page’, ‘avia_searchwp_search_num_results’ );

    $posts = $searchwp->search( $engine_name, $search_string );
    return $posts;
    }

    #973194

    Hi,

    Could you try updating the theme to the latest version (4.4.1) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update

    Best regards,
    Rikard

    #980817

    I’m having the same issue with version 4.4.1. In fact, I’ve had this issue in the last several versions. If I type a search term in the ajax magnifying glass box, it very rarely displays the post in the ajax results. But when I click enter, it’s usually the very first post in the search list. We’ve had lots of people complain about this. Do I need to implement the solution mentioned above or is there something else wrong?

    Thanks
    JP

    • This reply was modified 6 years, 5 months ago by jstonestreet. Reason: I just noticed it works if I use quotes around the search term. e.g. "potato salad" instead of potato salad. But I can't expect users to use quotes
    #980823

    Quite frankly this is a strange result. I’ve been beating my head on this issue. I have not updated the theme to check. in the meantime I bit the bullet and purchased SearchWP, which is pretty impressive in its functionality and replaced the standard WP search and it has gone away. They also have SearchWP Live Ajax Search that can be installed. You can try it at my site.

    It wouldn’t hurt to upgrade the theme to test, backup your stuff including custom css and tweaks and give it a shot.

    • This reply was modified 6 years, 5 months ago by hostworks.
    #981380

    Hi,

    Thank you for the feedback, we appreciate i a lot

    Best regards,
    Basilis

    #982759

    Did you see my post before hostworks? I’d rather not install another search option. I like the way the current search function works, and its simplicity. I’d just like it to work correctly. Thanks!

    #983155

    Hi,

    We do understand, but that would require time for us to modify the search.
    We can report it to out developers so they can look how the results can be better.

    Best regards,
    Basilis

    #985960

    Great! Do you have any idea how long that would take? This has been a bug for quite a while. Thanks!

    #986626

    Hi,

    We have reported the issue and our development team is working to get things done.

    Best regards,
    Basilis

    #986699

    THANK YOU!

    #993966

    Thanks! Any update yet?

    #994563

    Hi,

    There is no update. As that would require some modifications we do not have any plans for it right now, as we are focusing to have Enfold work properly with WordPress 5.0 version.

    Best regards,
    Basilis

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.