-
AuthorPosts
-
February 4, 2020 at 6:00 pm #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,
ElFebruary 6, 2020 at 5:12 pm #1182048Actually 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.
February 6, 2020 at 7:06 pm #1182125Hi,
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,
BasilisFebruary 7, 2020 at 12:12 pm #1182283Hi 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,
ElFebruary 17, 2020 at 9:58 pm #1185435Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.
