Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [plugin-wpml]

WPML is a multilingual WordPress Plugin. WPML makes it easy to build multilingual sites and run them. It’s powerful enough for corporate sites, yet simple for blogs.

0
votes
0answers
12 views

On billing country change in the checkout page, re-total the cart using appropriate currency

I'm not very experienced, digging this for days now, running out of solutions. Please help :) I have a two-languages(=two currencies) website using WPML. Both currencies are allowed on both languages,...
2
votes
1answer
30 views

Created pages not showing up in 'All Pages' list

Due to some custom software integration, I have my theme generate some pages automatically with set templates in order to achieve the required functionalities. I do so with the following script: (...
0
votes
0answers
11 views

How do I split a single WPML site with 6 languages (English is Main) into Multisite with 5 subfolders

I'm working on a huge WPML website with 6 different languages (english is main .com) and I'd like to convert it into a multisite with subdirectory structure instead of the .com/?language= structure. ...
0
votes
0answers
16 views

Temporarily redirect requests for localized pages to default language version

We have a website with around a hundred pages, and each has been localized into 3 languages using the WPML plugin. We would like to try disabling localization for several weeks. In doing so, we have ...
0
votes
1answer
26 views

Permalinks don't update nor link properly

I'm using Events Manager and WPML for my WordPress site. I have changed the permalinks formatting from the default /?p=123 to use the article name. So, for example, let's say that I want to link from ...
0
votes
1answer
25 views

PHP Warning adding menu

(sorry for my english...) I have an issue...: I can't add / translate menus in my admin. I have this error in debug.log : PHP Warning: strip_tags() expects parameter 1 to be string, array given ...
1
vote
1answer
26 views

Page and Post return 404 with custom taxonomy

I have registered a custom taxonomy on "post" named "cat_modules" with this args: 'rewrite' => array( 'hierarchical' => true, 'slug' => '/', 'with_front' => ...
-1
votes
1answer
13 views

WPML & Events Manager translatable fields after duplication

I have created a WordPress site with WPML and Events Manager together. I want to create events in a language and then translate it to my second one. That's easy but I can't seem to find where I change ...
0
votes
0answers
33 views

Change the language of domain from English to French WPML String Translation

Changed the language of the domain in French so now it takes strings and let's me edit the Original(English) string from WPML and not editing/changing the string directly in the template. But after I ...
0
votes
0answers
12 views

Plugin that make multiple duplicates of each post like WPML plugin do

I'm looking for a plugin that make duplicates of each product, like WPML that duplicate post for each language, my goal is duplicate each product-post for each branch of store.
-1
votes
2answers
120 views

ACF + WPML: How to translate date fields?

I'm trying to translate the month name outputted by an ACF date field. How do I get the Spanish versions of those month names? Here's an example of my code: $start_date = get_field('start_date'); $...
2
votes
1answer
68 views

Woocommerce and different checkout field for different countries

I am considering to migrate from Magento to Woocommerce. My main site is for Japan, and the other is in English. I read you can go for either WPML or multisite. I understood WPML can handle multi ...
1
vote
1answer
143 views

Fetch ID's associated with a custom post type when translated with WPML?

I've created a custom post type (roomtype). Now these roomtypes has post id 272 (single room in swedish) and 350 (double room in swedish) I've made it translatable (with WPML) and created in english. ...
1
vote
1answer
195 views

WPML Translating a term/taxonomy programmatically

I have all terms in English and I am creating/duplicating the same ones for German language by using foreach on english terms and this way i create all terms for German language. The problem is when ...
0
votes
0answers
34 views

how to remove certain words from url wordpress

i am using wpml for my wordpress site, it adds language code to the website url, i would like to remove the language code from url except homepage. i got the following codes, but it is not working, no ...
0
votes
0answers
28 views

Permalinks/Routing gets corrupted on Theme/Plugin updates

The Wordpress site uses WPML plugin and Divi theme. Posts and categories are translated via WPML. The category base is removed via No Category Base (WPML) plugin. Generally this setup works well but ...
1
vote
0answers
103 views

Rewrite CPT permalinks and include WPML language

In my website I am using WPML for translations. So my website's main language is English, and I am rewrite the permalinks of my cpt (artikelen) to website.com/postname/post-id. This works perfectly ...
0
votes
0answers
38 views

How to reload WPML string translations for a reloaded theme textdomain?

I have an action that changes the theme locale from the plugin in the following way (plugin/wcet/wcet.php): $locale = get_custom_locale(); add_filter( 'theme_locale', function() use ( $locale ) { ...
0
votes
1answer
75 views

add .html to custom post type with WPML

( i open a new question since i found why my slug don't translate in generated links, sorry if it is an error, but sounds logical for me ). so i use WPML and Custom Posts Type on my wordpress. i ...
0
votes
0answers
158 views

Custom Post Type slug and WPML gets 404 error

i do have a curious problem on a new wordpress developpement. i have many CPT and WPML working on the site (default language is "french"). example, i have a custom post type who is : "marche" ( for ...
0
votes
1answer
31 views

How to migrate Custom Field Template to a Wordpress Multisite

I just did this and I couldn't find any documentation so I thought I'd post instructions in case anyone else wants to migrate the Custom Field Template to a Multisite. In my case I was migrating from ...
0
votes
1answer
245 views

How to use WPML Plugin in contact form 7

I have using WPML plugin in my website for the purpose of translating the content. I have a query how to translate the content within the contact form 7 via WPML plugin. I example : in my contact ...
-1
votes
2answers
173 views

How to get shared CSS body class between translated WPML pages [closed]

I need to add the same CSS class to <body> element of all translatons of a page, but the CSS class added with body_class() is different for each translation because it is taken from the ...
0
votes
1answer
43 views

Creating multilingual glossary for WP

I'm trying to create multilingual glossary using WP & WPML & custom post type. And I found solution to achieve this. Link to the page example - link 1) Added to functions.php function ...
-2
votes
2answers
671 views

WPML - Filter by individual or all languages

I have a query based on two parameters on a multilingual website (with WPML). To simplify, let's say that one of my filter is the language of the post to retrieve : English, French or all languages. ...
1
vote
2answers
267 views

How to translate WordPress Emails?

I'm running a multilingual site, and I want the emails sent to the user to be in their language. The scheme I already have is the following: The website determines the user's country through their IP....
0
votes
1answer
253 views

WPML get permalink to the translated post from the original post

I'm writing a plug-in to redirect visitors to the translated page if they have a German IP. add_action( 'wpml_loaded', 'geo_redirect_client' ); function geo_redirect_client() { define( '...
1
vote
1answer
96 views

WPML - Set language of inserted post

I have a contact form 7 on the front-end which creates a new custom post everytime it's filled. Everything is working fine but I don't understand how to set the language of this post (currently it's ...
0
votes
1answer
93 views

Create header.php redirect in Wordpress and with WPML

I'm developing a website and I'm using WPML to create different languages on the website. I would like to Geo redirect users based on their countries. I'm using subdirectories in WPML so I have: ...
0
votes
1answer
533 views

WPML language switcher for custom rewrite rules

I am making custom rewrite rules for categories in a dual-language project (german as main, english as second language). The urls look like this example.com/fliegen > shows archive.php for category ...
1
vote
2answers
2k views

How can override a add_filter of a plugin?

How can I override add_filter of a plugin? like add_filter( 'wcml_switch_currency_exception', 'cart_switching_currency', 10, 4 ); I want to use my custom function instead "cart_switching_currency" ...
0
votes
0answers
19 views

Is there a way to ensure browser automatically translates page content to another language (via Google Translate)?

How would I approach automatically applying a Google translation to page content for ~500 custom posts on my site? I’ve created a French version of my website using the WPML plugin (French site here)....
0
votes
1answer
40 views

How to list WP multisite languages

how to get the array list of multi-site with multi languages, for e.g i am on site 1 and want to know about other sites languages site 2, site 3. Site Structure is: EG (Egypt - with 2 languages) ----...
-1
votes
1answer
365 views

wordpress query making site very slow

How can i improve this wordpress query that is making site very slow ! SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) JOIN wp_icl_translations t ON ...
0
votes
2answers
773 views

ACF Content with WPML not saving [closed]

I'm using ACF to build some custom elements on pages and also WPML to manage the translations of these pages. I am currently seeing an issue where the pages do not save when I update the language ...
3
votes
2answers
2k views

Add language/country code to each possible URL

I've been trying to achieve a seemingly simple permalink structure customization without success. The goal is to always have /aa-bb/ in front of each possible permalink, where aa is a language code ...
4
votes
2answers
67 views

Custom Post Type With Different Views

We are rebuilding our website in Wordpress and are trying to figure out the best solution to display a different views of the same product with unique meta data. For example, let's say that Property ...
0
votes
1answer
425 views

2 different languages, 2 different domains: Not sure which choice to make

I am a WP newbie just trying to set up my own personal website. I live in a french area of Canada, so I need a french website, but my native language is english so I want an english website as well. I ...
0
votes
1answer
84 views

Site doesn't work when updating to SSL using nginx

What works: https://www.exampleBE.be http://www.exampleFR.fr What doesn't work: https://www.exampleFR.fr ( ERR_CONNECTION_REFUSED in Chrome ) I'm using EasyEngine for my nginx configuration and ...
1
vote
0answers
251 views

WPML Permalink missing language slug

I have a new WordPress and I added a page: /fr/les-solutions And I can see the permalink properly in the backend editor. However, when I click on the link, it redirects me to: /les-solutions/ I've ...
1
vote
0answers
161 views

Country switcher, then option to choose language for that country [closed]

The client will have about 30 different country version…and each country has at least english language (and 6 countries have additional second language, like austria, germany- german, japan (japanese),...
0
votes
1answer
85 views

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

I have a Nav_Walker class to work with the Super Fish menu. And it works well. Now that I added WPML CMS Nav however I am getting notices like: notice: Undefined property: wpml_ls_menu_item::$current ...
2
votes
0answers
94 views

Comments waiting but no comments found

So, I have a weird problem, and I'm not sure this is the right place to ask it, but I'm going to try because all other options have failed. I have a site that is running WPML and WooCommerce. On this ...
0
votes
1answer
59 views

wpml and languages with different directions

I do not know if this problem exists with other situations as well or not, but here is how I have encountered it. My website's default language is Farsi and I have added English with WPML to it. The ...
0
votes
2answers
631 views

WP all import and WPML, stock sync issue during cron job

I'm using WP all import to update WooCommerce products stock. WPML is installed, 2 languages, only variable products, all duplicated. When I manually run the import from the "run import" button of the ...
0
votes
2answers
198 views

After disabling WPML multi currency, the currency is still handled by the WPML

I have used WPML multi currency for a while, but recently I turned it off and use the other currency plugin. Most of the amount have converted correctly, but for some amount still remain at the ...
0
votes
0answers
135 views

Is there a way to move WPML scripts in footer?

I found out that wpml force my jquery to load into header. (I already deregistered it and registered my own one). Is there a way to move wpml script in footer?
0
votes
1answer
43 views

WPML - Change media uploader language

I open the image picker of wordpress on the front end with this function function save_image($id){ var mediaUploader; event.preventDefault(); // If the uploader object has already been ...
1
vote
1answer
50 views

Specific content by country in multiple languages

In a project we need to have country specific FAQ-content for each country. As a twist the FAQ-content for each country has to be translated to the main language of the country and at least english, ...
0
votes
1answer
54 views

WPML admin texts with serialized objects

I have been trying to get a plugin to work with WPML - I'm almost there but I'm wondering if anyone knows if it's possible to get WPML's admin texts (wpml-config.xml) to read serialized objects stored ...