Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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;
        relevanssi_do_query($tempquery);
        $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.

    Best,
    El

    #1182048

    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.

    #1182125

    Hi,

    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,
    Basilis

    #1182283

    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.

    Best,
    El

    #1185435

    Hi,

    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,
    Basilis

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