Resolved
Reported for: WPML Multilingual CMS 3.2
Resolved in: 3.2.1
Overview of the issue
Add the following code in the footer.php file:
do_action( 'wpml_add_language_selector' );
It should display the language switcher, but nothing is shown instead.
Workaround
- Open this file:
sitepress-multilingual-cms/inc/template-functions.php
- Move to line 989: you must see the following code:
function wpml_add_language_selector_filter() { global $sitepress; return $sitepress->get_language_selector(); }
- Replace
return $sitepress->get_language_selector();
withecho $sitepress->get_language_selector();
- Save the file
I just download the last version and still not working with “echo” code.
Hello Marco,
The issue should be resolved in the latest 3.2.2 version without any changes to the code. If you find that you are still having problems with displaying the language switcher it would be best to open a support ticket about it in our forums.
Thanks! 🙂