-
AuthorPosts
-
June 14, 2018 at 8:38 pm #972993June 14, 2018 at 11:46 pm #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;
}June 15, 2018 at 10:04 am #973194Hi,
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,
RikardJuly 4, 2018 at 12:10 am #980817I’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
July 4, 2018 at 12:33 am #980823Quite 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.
July 4, 2018 at 11:58 pm #981380Hi,
Thank you for the feedback, we appreciate i a lot
Best regards,
BasilisJuly 8, 2018 at 6:28 pm #982759Did 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!
July 9, 2018 at 3:45 pm #983155Hi,
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,
BasilisJuly 16, 2018 at 3:38 pm #985960Great! Do you have any idea how long that would take? This has been a bug for quite a while. Thanks!
July 17, 2018 at 8:36 pm #986626Hi,
We have reported the issue and our development team is working to get things done.
Best regards,
BasilisJuly 18, 2018 at 12:30 am #986699THANK YOU!
August 6, 2018 at 4:01 pm #993966Thanks! Any update yet?
August 7, 2018 at 8:48 pm #994563Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.