Questions tagged [wpml]

WordPress Multilingual (WPML) is a commercial plugin that adds various multilingual capabilities to WordPress.

414 questions
1
vote
0 answers

Enable "language filtering for ajax operations" for logged-in users at WPML

I enabled language filtering for ajax operations option in WPML and it works properly for the non-logged-in users as they said Enabling a Language Cookie to Support AJAX Filtering. But I want to enable it for the logged-in users also.
1
vote
1 answer

WPML - SQL query to get post by current language

I'm using WPML and need a custom search query (The default search of wordpress is not working in my case). Let say my query is: "SELECT * FROM wp_posts WHERE post_title LIKE %s% AND [WPML_CURRENT_LANGUAGE_CONDITION]"; Please help me check which…
mrdeeds88
  • 115
  • 1
  • 7
1
vote
1 answer

How to enable WPML to translate my content widget?

I'm developing a WordPress plugin and would like to know how I may translate a text from the plugin's database table using WPML. Here's a sample of the code I want WPML to translate into multiple languages: echo esc_html_e('Contact…
1
vote
0 answers

WPML: ICL_LANGUAGE_CODE and wpml_current_language returns always language code de

i'm using WPML for translations on the wordpress website. Now i want to get the current language code, to redirect to the right site. I've founded for that two ways: Using the ICL_LANGUAGE_CODE or the filter-function wpml_current_language. The thing…
Stefan
  • 61
  • 6
1
vote
1 answer

WordPress Multilingual Support for Multisite

I have one multisite with one custom post-type and multiple taxonomies and posts are generated using a third-party application. Now I want to create a German addition site where content from the third-party application will be German and I want to…
Harit Panchal
  • 422
  • 3
  • 14
1
vote
0 answers

Wordpress translation with language files

I have 2 examples, 1 work and the other not. I'm fixing a plugin and I have some issue with the translation using the language file. Some place I have this code: This code work and…
1
vote
1 answer

WPML - How to redirect non translated content to English and not to default language

I have a website where the default language is set to Italian. English is the only other language of the site. I need to redirect all other language to english and let users choose italian as well. 'm trying to use the following code but it has some…
DaFois
  • 2,197
  • 8
  • 26
  • 43
1
vote
1 answer

WordPress: Change language of the splash screen

I am using WPML and WP-maintenance-mode plugin on my site. This site supports dutch and english language with /en and /de in url as below. mysite.com/blog/de/blabla mysite.com/blog/en/blabla When I put the site into maintenance mode, the…
Mahbub Rahman
  • 1,295
  • 1
  • 24
  • 44
1
vote
0 answers

Max megamenu custom widget with ACF fields not retrieving any data in secondary language WPML

I have a problem when retrieving acf fields added for a widget. I will explain the situation. I am using MaxMegamenu plugin for implementing megamenu, ACF pro for custom fields and WPML for site translatiom. Primary language is Deutsch and English…
1
vote
1 answer

Which cloud support flexible CPU/Memory upgrade and downgrade on the same instance?

I have a WooCommerce website with WPML multi language plugins. When I try to batch update products, the CPU soar to 100%. But once updating complete, the CPU drop back to around 15%. At this moment, I am on Digital Ocean, CPU optimised, 4GB memory…
stackmike
  • 73
  • 5
1
vote
1 answer

Make changeable text field translate ready in php

I have a text field in the backend. The text value inside it will be different depends on the products I choose. So, it's a kind of dynamic field. How can I target that field to make it translatable? so each time I create an offer WPML can detect…
Bassam Radi
  • 169
  • 9
1
vote
0 answers

Wordpress WPML email from plugin

I made a plugin myself with a user-interface part, but additionally a cronjob that sends out emails on a daily basis. The user-interface part works fine multilingual, but I don't get the email-function properly multilingual. Email sending is…
Leon N
  • 103
  • 2
  • 14
1
vote
1 answer

How to change a user language programmatically in WPML?

Anyone know how to change a specific user language when they switch WPML language? For Example the steps: The website default language is English. After admin create new user (User1), their default language when login is English (EN). User1…
Mít
  • 195
  • 1
  • 3
  • 18
1
vote
1 answer

How to set pages as translations of another page with php?

I am currently creating a network of landing pages with PHP and publish them on WordPress. These pages have parent-children relationships and I add meta data before I use wp_insert_post() in order to publish them. My code works fine but the pages…
kumorin
  • 67
  • 6
1
vote
1 answer

WPML doesn't show translated languages of the YITH default text (wordpress)

I translated defalult text of the YITH plugn (Request a quote plugin) in the WPML String. But it only shows English in the frontend. *Other strings show translated languages, just this part doesn't show translated languages. Would you please let me…
isbe
  • 233
  • 2
  • 12