Tagged: , , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #552937

    Hello,
    I have noticed that you offered PHP snippets in order to allow the use of alternate search engines for WordPress. As I would like to use the geeSearch Plus plugin (https://wordpress.org/plugins/gsearch-plus/) with the ajax search function – preview search results when you click on the magnifier icon – could you be so kind to share the code needed to allow me to fully use it with my Enfold child theme?

    Thanks for your help,

    Diego Meozzi

    #553513

    Hey Diego,

    We have solutions for SearchWP and Relevanssi: http://kriesi.at/documentation/enfold/?s=search. I’m not familiar with the plugin you are using though.

    Best regards,
    Rikard

    #554312

    Is there any chance to have a look at the PHP functions used by that plugin and adapt a script so to allow me to using it with Enfold? If not, what should I look for to make that script by myself?

    This is the link to get the geeSearch Plus plugin:

    https://downloads.wordpress.org/plugin/gsearch-plus.1.4.3.zip

    Thanks for your help,

    Diego

    #554820

    Hi,

    That would take a lot of customisation and time and would be considered out of scope of forum support unfortunately. I’m not sure how the plugin you would like to use is set up so I can’t really suggest where to start either.

    Best regards,
    Rikard

    #556139

    >We have solutions for SearchWP and Relevanssi: http://kriesi.at/documentation/enfold/?s=search.

    OK, I have switched to Relevanssi plugin, but the solution you provided here:

    http://kriesi.at/documentation/enfold/use-relevanssi-in-search-instead-of-the-default-search/

    does not work on a child theme. Do you have any suggestion on how to make it work?

    And speaking of Relevanssi, do you know why the “Highlighting” function does not work on Enfold posts?

    Thanks for your help,
    Diego

    #556882

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #556931

    As you will see, I’m using a fairly complex custom-made plugin (Custom Type Aerei) to allow custom posts within your theme. And currently the Relevanssi plugin does work because I’ve modified the main functions-enfold.php file, as adding the function in the child theme didn’t work.

    Thanks for your help!

    • This reply was modified 8 years, 12 months ago by nightjar. Reason: Adding ftp data
    #559398

    Hey!

    unfortunately we can’t help you in your case. It would take a huge amount of time and customization. Please hire a freelance developer for this kind of job.

    Best regards,
    Andy

    #559910

    After having waited almost two weeks for a reply, I would have appreciated at least a working solution to allow the use of Relevanssi plugin in the child theme. I’m sure for *that* “a huge amount of time and customization” won’t be needed from your part…

    #560251

    Hi!

    I didn’t test this personally but please try to replace the code in the functions.php file with the following code:

    function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults)
    {
        $function_name = 'avia_relevanssi_search';
        return $function_name;
    }
    
    function avia_relevanssi_search($search_query, $search_parameters, $defaults)
    {
        global $query;
        $tempquery = $query;
        if(empty($tempquery)) $tempquery = new WP_Query();
    
        $tempquery->query_vars = $search_parameters;
        relevanssi_do_query($tempquery);
        $posts = $tempquery->posts;
    
        return $posts;
    }
    
    add_action('init', 'ava_activate_relevanssi');
    function ava_activate_relevanssi() {
    	add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4);
    }

    Cheers!
    Ismael

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