if (ICL_LANGUAGE_CODE!="en"){ $original_ID = icl_object_id( $post->ID, 'post', false, 'en' ); $country = get_the_title( $original_ID ); } else { $country = $country_full_name; }And in our HTML-part:
Get the title in default language
Sometimes we need variables to stay in a default language, e.g in English. For example, we have a multi-language site but Google Maps accepts country's name only in English.
In our php-part: