Questions tagged [wpml]

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

414 questions
2
votes
1 answer

WooCommerce Custom Loop by Name Instead of Slug

I'm currently showing the products of one WooCommerce product category (events) with the following code: 'product', 'product_cat' => 'events'); $loop = new WP_Query( $args ); while ( $loop->have_posts() )…
2
votes
2 answers

WPML |Get the current ICL_LANGUAGE_CODE with JS

I tried to retrieve the current ICL language with this code but it doesn't work. var getLangCode = ''; alert(getLangCode); Do you know how can I get the current language code with javascript ? Thanks in advance !
colapsnux
  • 872
  • 2
  • 15
  • 32
2
votes
0 answers

Problems installing WPML plugin?

When I try to install the WPML plugin I get an error screen (like the image below), and the plugin isn't enabled, it's quite frustrating since I can't seem to understand what's wrong. Perhaps the table doesn't exist, but I thought that WPML is…
user4815703
2
votes
0 answers

wp_get_nav_menu_items not working on translating site in other language

I have a custom menu from wordpress > Appearance > Menus and bind submenus from db using wp query. The issue i am facing that the submenus are binding in Default Languange (English) but when i translate site in Hebrew Language then submenus are not…
dev tester
  • 327
  • 1
  • 10
  • 25
2
votes
2 answers

Wordpress WPML not translating get_option

i am trying to translate my plugin options through WPML but it is not working. Here is how i have placed my string in the plugin file get_option(_e('my_label','my-text-domain')); I have already scan my plugin through the WPML and have done…
Mubashir
  • 567
  • 3
  • 8
  • 25
2
votes
0 answers

WordPress pagination disappear when switch language

I'm using WPML to make my site be able to switch between two different languages(Eng/Chinese), and on my posts page usually there are auto pagination. Now the pagination is working well under English but not working under Chinese. Please help to…
cwang
  • 1,103
  • 11
  • 21
1
vote
1 answer

How to retrieve WPML current language code to use the correct date format in jQuery Datepicker?

I have this hotel wordpress site using WPML to handle the internationalization. The model I use is each language has its language folder: mysite.com/en/, mysite.com/de/, etc All is working properly. I use a jQuery Datepicker to let visitors select…
Greg
  • 354
  • 1
  • 5
  • 11
1
vote
1 answer

Change font-family css language on wordpress with wpml and elementor

I am using wordpress with elementor pro and wpml, i use English and Arabic language, for Arabic i want to use another font-family handled by Elementor (google font), but when i try to implement it it does not work. I folloewd alla recommandation…
cyril
  • 872
  • 6
  • 29
1
vote
1 answer

python, woocommerce: how to add categories with translations?

I need a python snippet to create categories with translation. Python 3.8 with woocommerce package. Wordpress with woocommerce plugin in version 7.3 WPML Multilingual CMS: 4.5.14 I have this snippet in python: from woocommerce import API # create…
gerpaick
  • 801
  • 2
  • 13
  • 36
1
vote
0 answers

WPML Automatically duplicate secondary language to another secondary language (or set different fallback per language)

WPML provides an option to set each domain as a separate language. As a result, we have a German AT (for the .at) domain and a German DE (for the .de domain), for example. English is the default language and it needs to remain that way because we…
1
vote
0 answers

WPML Dropdown Issue, how to alter its HTML structure?

I am using WPML for multiple languages on my WordPress website, but I am having a problem with the mobile menu. As soon as I open the dropdown menu, I am redirected to the URL. As you can see in the photo I shared below, there is a URL in the
  • 1
    vote
    1 answer

    Creating multilingual products with WPML

    I'm creating multiple woocommerce products programmatically. In order to create translated products and according to WPML documentation i should use: $my_translated_post = array( 'post_title' => $this->title_en, 'post_content' =>…
    Meni
    • 119
    • 1
    • 4
    • 13
    1
    vote
    1 answer

    Different languages for one country instance on Wordpress

    I have very specific question. We need to create multilangual site on Wordpress with the custom permalink structure. It should be like that: / - homepage /es-es/ - Spain and Spanish language /es-en/ - Spain and English language etc But none of WP…
    Shustoff
    • 11
    • 1
    1
    vote
    0 answers

    translate Gutenberg Custom blocks with WPML Translation management

    I have custom Gutenberg block. it works fine, now im trying to translate it with translation management. whatever I try to do it just not showing up in translation management. what I want is to to have my custom block's field in translation…
    kurosawa
    • 11
    • 2
    1
    vote
    0 answers

    Get woocommerce attribute label translation from WPML (hook)

    I'm trying to get the translation of some woocommerce global attributes. I have the IDs and the slugs of the attributes but I'm not able to find a way to do it. So far I have tried with these…
    detecht
    • 21
    • 2