Wpdb empty result only if language is Russian
I’ve solved the problem. As I was boiling my head to find another approach, I’ve seen that stato_ru column was the only one not having utf8_generic_ci encoding…
I’ve solved the problem. As I was boiling my head to find another approach, I’ve seen that stato_ru column was the only one not having utf8_generic_ci encoding…
You should edit the theme and add the use of translation API https://codex.wordpress.org/I18n_for_WordPress_Developers at the appropriate places.
Blog switch wpml string translation (multi-site)
Looking at the source, there is no programmatic way to accomplish that. There is only one location where $_GET[‘rtl’] is referenced and its value is used directly (i.e., it is not used to set the value of another variable used in the plugin). The function you would want to modify if you want the same … Read more
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
I found the solution by using this plugin: Global Content Blocks I defined the links in Content Blocks. Then, all languages have the same shortcode pointing to a block. So, I only need to update the Content Block and the update propagates to all languages.
Enqueue the files like they should be enqueued and HTTP(S) won’t be a problem. You can enqueue files properly witht he following example code /** * Enqueue scripts * * @param string $handle Script name * @param string $src Script url * @param array $deps (optional) Array of script names on which this script depends … Read more
I ended up having to switch to arrays instead of objects. Even that hasn’t worked out as well as I hoped.
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
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