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

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
16 views

Troubleshooting logging into the backend (wp-admin)

I have a Wordpress website on a cloud plan at Siteground. I switched the website to WPML recently. Since then, my main user (the blog author) has been unable to log into the website backend (wp-admin) ...
-1
votes
0answers
12 views

My Account navigation not displaying in other languages than EN

Baseline ; I'm working on a legady project where they used WPML + Woocommerce plugins. They have 5 languages. The default one is IT. They made translations of My Account page and inserted the ...
0
votes
0answers
7 views

Connecting from WP with WPML plugin to another WP db without WPML plugin

I am connecting to another Wordpress instance (using same database but different table prefix) from my main Wordpress site. My main wordpress site has WPML plugin activated but second site has not. I ...
0
votes
1answer
14 views

Make dynamic string translatable

I have a plugin where people can add their own (title) somewhere, but this title is not picked up by multilingual plugins. Reason for that is that I'm not using the __() function of course, I'm just ...
0
votes
0answers
17 views

Export Custom post + WPML

Hi everybody I have a Main wordpress with 500 custom post type, some of them are in Spanish, some of them in other language through WPML. I need to export them into a new wordpress, but I only ...
0
votes
1answer
13 views

Bulk assign posts to a category using SQL (MySQL)

I am migrating a wordpress site from QTranslate-X to WPML (2 multi-lingual plugins). In the migration, all my posts that belonged to a given category (healthy in English, sain in French) were ...
0
votes
0answers
29 views

WPML - custom post type pagination

I have problem with pagination of custom post type on main language page ONLY. 2nd page posts are not display. On translated page it works. I didn't use any addon to translate slug, is it a reason?
0
votes
0answers
18 views

Does WPML have a JSON/REST API to retrieve slugs?

I'm migrating from QTranslate-X to WPML. The resulting redirect rules that were generated are wrong: they point to the English-version slugs rather than the French-version slugs. I therefore want to ...
0
votes
0answers
16 views

How to translate wordpress filter slugs

I'm trying to translate filter slugs based on the current language. I can successfully translate taxonomy slugs using wpml_translate_single_string For example: localhost/products/oil_type/ gets ...
0
votes
1answer
18 views

Error 404 using wpml plugin

I have a multi site in WordPress. I want to use the wpml plugin for the root site. The problem I encounter is that when I add a new language to the website, it does not recognize the second language ...
0
votes
0answers
25 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
33 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
13 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
19 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
27 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
14 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
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
143 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
86 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
176 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
223 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
36 views

How to remove certain words from URL

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 the URL except homepage. I got the following codes, but it is not working:...
0
votes
0answers
30 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
117 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
1answer
84 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
177 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
284 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
192 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
48 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
785 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
289 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
272 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
106 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
107 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
576 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
20 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
44 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
393 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
802 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
3k 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
70 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
440 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
85 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
269 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
175 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
87 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 ...