WPML – Auto Duplicate Post Issue

The problem is that you are unsetting the default language form $langs array, so when you loop over $langs to make the duplicates, the default language is never included. This may be the cause of your problem (nothing to do with WordPress by the way). function wpml_duplicate_on_publish($post_id) { global $post, $sitepress, $iclTranslationManagement; // don’t save … Read more

WPML – Change media uploader language

I am french too, but I must answer in English. You need to use wp_localize_script(), that allow to handle localization in js scripts. add_action(‘wp_enqueue_scripts’, ‘load_script’); function load_script(){ wp_register_script( ‘popup’, plugins_url(‘yourscript/js/yourjs.js’), array( ‘jquery’ ), false, true ); wp_localize_script( ‘popup’, ‘popUp’, array( ‘popupTitle’=> __(”, ‘your-text-domain) ) ); wp_enqueue_script(‘popup’); } In the js file, you will able to … Read more

Is there a way to move WPML scripts in footer?

It depends. As commented on OP, WPML documentation and support are very minimal on this front. I found that for me, the only culprit forcing jQuery to the head of the HTML was wpml-xdomain-data.js from sitepress-multilingual-cms/classes/url-handling/class-wpml-xdomain-data-parser.php:53. This script appears to handle some part of the language switchers and, as I have a custom language switcher, … Read more

WPML CMS Nav and Custom Nav_Walker Undefined Property Notices [closed]

Checked the variable with isset to see whether or not it contained a value: $element->classes[] = ( isset($element->current) || isset($element->current_item_ancestor )) ? ‘active’ : ”; This solved the notice issue. And this seems to do the trick. Guess I over thought things here. Now I can start adding some content in Arabic and see start … Read more