Please make sure to update to WPML 4.3.6 and check our list of Known Issues before reporting

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.


This topic contains 1 reply, has 2 voices.

Last updated by Itamar 5 months ago.

Assigned support staff: Itamar.

Author Posts
September 21, 2019 at 5:27 pm #4616583


I don't know why your plugin ignores his own parameter! Do you know why?!
I've tryed everything without any sucess! WTF man! This is really comlicated! Nothing is simple in your plugin! Bello an improvements that i see with ACF!

1 - You can create an option to select field to specific languages and not an entire page. That way the user can add only a fiel and tell to system to alternate this fields. To do this you just have to add a _en in the slug of ACF and a simple function to detect cookie and add in query this extension depending on the language.

Now my code to switch language! I couldn't do the work!

//Pega linguagem selecionada no cookie
function get_lang() {
$lang = '';
if(isset($_COOKIE['_icl_current_language'])) {
if($_COOKIE['_icl_current_language']!='pt') {
$lang = $_COOKIE['_icl_current_language'];
return $lang;
function lang_switch(){
if (function_exists('icl_get_languages')) {
$languages = icl_get_languages('skip_missing=0');

hidden link - Here the language swticher don't appear and return an empty array! This is a var dump

September 23, 2019 at 8:00 am #4621453


Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)


I'm sorry for the inconvenience that has been caused to you with this issue.
I'll do my best to try and help you with this issue.

Please tell me what exactly you are trying to achieve with this code.
Could you also please tell me if the post that you show me as an example is translated or not?

We have on our site extensive documentation for developers. You can see the main page here.
If I'm not mistaken then the following hook and the examples on its documentation can help you in your case.

I look forward to your reply!


The topic ‘[Closed] icl_get_languages('skip_missing=0'); – ignoring skip missing’ is closed to new replies.