-
AuthorPosts
-
November 16, 2014 at 1:14 am #351935
when using the search box i would like to show only results from the current language. at the moment it shows all. how can i limit it to the current language?
thanks
mathiasNovember 17, 2014 at 12:39 pm #352348Hi MathiasVie!
Thank you for using Enfold.
Entries from other languages should be excluded by default when using the search function. Please post the website url here. We would like to check it. Make sure that you’re running Enfold 3.0.2 and the latest version of WPML.
Cheers!
IsmaelNovember 17, 2014 at 9:25 pm #352693This reply has been marked as private.November 18, 2014 at 1:43 pm #352938Hey!
I see. I’m sorry but we don’t provide support for third party plugins and honestly, I haven’t tried polylang yet. You can find the ajax search function on function-enfold.php file. I’ll ask Kriesi to take a look.
Regards,
IsmaelNovember 18, 2014 at 2:00 pm #352949This reply has been marked as private.November 19, 2014 at 1:19 pm #353605Hi!
Kriesi is a little bit busy right now so it might take a while before he can respond to this inquiry. I’ll close it for now but it will be re-opened when Kriesi respond. For faster results, please contact the plugin author or hire a freelance developer to investigate the issue further.
Regards,
IsmaelDecember 5, 2014 at 1:11 am #363361Hey!
Please try to add this code in the functions.php:
/** * Ajax Search Query */ add_filter('avf_ajax_search_query', 'avf_modify_ajax_search_query', 10, 1); function avf_modify_ajax_search_query($search_parameters) { $language = pll_current_language(); parse_str($search_parameters, $params); $params['lang'] = $language; $search_parameters = http_build_query($params); return $search_parameters; }Cheers!
IsmaelDecember 16, 2014 at 12:12 am #368681Hm. Kenn das plugin leider auch nicht. würde mal bei den polylang leuten nachfragen ob es irgendeinen parameter gibt den man beim query mitschicken kann um die sprache zu filtern. Dann kan man das vielleicht in einen filter packen und mitschicken :)
December 16, 2014 at 8:44 pm #369134This reply has been marked as private.December 17, 2014 at 12:16 am #369252 -
AuthorPosts
- The topic ‘all languages in search result’ is closed to new replies.
