Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #1181414

    Hi guys,

    since the the update of enfold the instant search returns the wrong language in our multilingual site. Please let me know how I can intercept the search result and localize the found posts (title, excerpt, link, permalink).

    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;
        $posts = $tempquery->posts;
        $posts = qtranxf_postsFilter($posts, $tempquery)
        return $posts;

    Would probably work – I would need to try. Otherwise I need to do it in a loop:

    `$text = apply_filters(‘translate_text’, $text, $lang=null);
    $term = apply_filters(‘translate_term’, $term, $lang=null);
    $url = apply_filters(‘translate_url’, $url, $lang=null);`

    Please help.



    Actually it turns out that I need to manually apply those filters after the search results return from the ajax function call. Please let me know how to change the output accordingly. Appreciated.



    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,


    Hi Basilis,

    not a stellar reply by you guys since it used to work flawlessly. Only since the update do we start having these issues.




    I do understand but it is a modification which we haven’t coded and unfortunately, we do not track our changes over our theme, based on the client modifications.
    I do respect what you say although.

    Best regards,

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