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.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Fetch debug information from WPML in $.ajax results in 403 forbidden

I am trying to fetch debug information from a piece of javascript, to make it easier to copy the debug information code (if find my self often doing this). However, when I send a request to a page, ...
0
votes
0answers
10 views

Default media uploader is not showing in wordpress website

There is a custom post type events in the website. When I create a new post under events i am facing issue with media uploader When i tried to upload the featured images in the english version of the ...
0
votes
1answer
22 views

WPML and Yoast SEO setup on a wordpress site is not working properly

I'm stuck with WPML+Yoast SEO on a website everything is translated in 2 languages even in page source the description and title is translated but in google searches google is messing up like for a ...
0
votes
0answers
11 views

Multi-country+language, design controlled by one theme

I'm trying to cater to a site which would serve multiple countries, in multiple languages, while maintaining an easily updatable theme. Right now, I'm using WPMS (one site per country) with WPML (...
1
vote
0answers
17 views

use wpml_post_language_details function other plugin based on $post->ID [closed]

I would like to use wpml_post_language_details function in other plugin based on $post->ID of WP. WPML language plugin wants to use for fetching lang information. I also wonder if i can use ...
1
vote
0answers
25 views

x-wp-nonce across domains

I've installed WPML with a multiple domain configuration (one domain per language). The wrong thing is that, when editing for example a post while using a different domain from the main, it just ...
1
vote
0answers
25 views

How to Translate a string of an array inside a class?

I want to translate my functions.php with custom code in it. There I have a Class "Glbl_Helper" with a public static array that contains strings like "translate_me". Now I want to translate the ...
0
votes
1answer
16 views

I have defined 2 text strings, how do I use them in my posts?

If you define a text string in the child theme functions file, how do you call for those inside your posts? I added 2 phrases to use over and over in a table, I want to translate them with WPML, I ...
0
votes
0answers
12 views

Create custom permalinks to archive and taxonomies with WPML

I have custom slugs generated via Custom Post Type Permalinks plugin. On the website, I have WPML to translate my page. I want to translate slugs to another language including custom permalinks. I'm ...
0
votes
1answer
52 views

How to translate text in function.php with WPML [closed]

I added this function to add cash on delivery price and I want to translate the text (cash on delivery) using WPML plugin add_action( 'woocommerce_cart_calculate_fees', 'custom_handling_fee', 10, 1 );...
0
votes
1answer
33 views

How to change the canonical link from a category or taxonomy archive?

On this url: https://www.phuket-luxury-villas.us.com/tourist-spots/buddhist-temples-wats/ I have a wrong canonical link: <link rel="canonical" href="https://www.phuket-luxury-villas.us.com/tourist-...
0
votes
0answers
12 views

RTL theme displaying LTR in WooCommerce pages

I'm using DIVI with WPML, WooCommerce and Variations for WooCommerce I have issues with text align/direction/float and string translations on the shop, product, and checkout pages (see below) Where ...
0
votes
1answer
64 views

Change WooCommerce currency programmatically on AJAX request

I am adding a custom ajax_action to fetch a product and display price html (same template as everywhere else on my page), the issue is that the price being returned is not equal to the current price ...
0
votes
0answers
22 views

How can I change WPML settings programmatically?

I'm trying to change WPML settings programmatically, as suggested in these posts: Disable auto sign-in programmatically Overriding the WPML settings My goal is to disable a WPML's feature that ...
0
votes
0answers
57 views

WPML - Hook when language is switched (change user language)

I would like to change the logged in user's language (if someone is logged in) when they change the language in front-end. I'm using the WPML Multilingual CMS plugin in my Wordpress website. I've ...
0
votes
1answer
27 views

Wordpress custom block compatability with WPML

I am trying to build a simple custom Wordpress block using the Block API, but I'm struggling to get the text strings to show up for translation properly within the WPML translation plugin. I've seen ...
0
votes
0answers
25 views

Multisite - WPML Rewrite Url

I'm using WP Multisite and I have this structure of urls for all my sites: example.com/en example.com/de example.com/us example.com/fr In each site I have installed WPML for translations. Each site ...
0
votes
0answers
89 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) ...
0
votes
0answers
8 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
80 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
22 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
170 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
37 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
34 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
26 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
57 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
94 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
115 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
17 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
28 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
29 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
27 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
37 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
24 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 ...
-1
votes
2answers
231 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
150 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
295 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. ...
2
votes
1answer
325 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 ...
1
vote
0answers
150 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
114 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
1answer
330 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
37 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 ...
2
votes
1answer
424 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
254 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
58 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 ...
-1
votes
2answers
1k 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
358 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
387 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
184 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
208 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: ...