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

WPML - Stop language redirection in initial load

We have a multilingual website which is connected with English & Arabic using WPML plugin in WordPress. As a default behavior, the website is redirecting to /en/ version which I need to stop, but ...
0
votes
0answers
5 views

WordPress WPML Setup Help Needed

I have live wordpress site with WPML plugin 1) https://(my-domain).com -> English 2) https://(my-domain).se -> Swedish it is working fine Now i want to change url structure i.e. 1) https://(my-...
0
votes
1answer
16 views

Translate string inside twig template

I am trying to translate a string inside a placeholder in a twig (timber) template. But I cannot detect the string in WPML string translation. <input type="text" id="s" name="s" value="" ...
0
votes
0answers
13 views

sanitize_option_{$option} filter returns null

I have a problem that theme options is not updating, so after tracking down the problem i have reached to the sanitize_option_{$option} filter, so before applying the filter i var_dumped the $value ...
0
votes
0answers
8 views

WPML stop encoding slug in class attribute

I have in my WordPress site defined main product attributes, one of these attributes is product color which has 3 colors: white , yellow , white-and-yellow my site is translated by WPML plugin to ...
0
votes
0answers
18 views

Where are comment ratings stored?

I have a bilingual site. Previously I was using a language plugin that would store the different languages in the same post which means all my comments belonged to that post. I switched to WPML which ...
0
votes
0answers
5 views

Re-ordering URL structure for multi-lingual blog

I have a main e-commerce website that sites on mywebsite.com, built in PHP & MySQL. (not Wordpress) The website is multilingual, and the URL structure for other languages look like mywebsite.com/...
1
vote
0answers
14 views

Redirect some of the languages on a multi-language site

I have a site that uses WPML to display three languages. EN - www.domain.com FR - www.domain.com/fr/ ES - www.domain.com/es/ I want to set up redirects so that all of the EN and FR pages (home and ...
0
votes
0answers
21 views

wp_options in multilanguage web site

I am trying to create a multilanguage supported template in WordPress. But I have a issues about options. I am using the WPML plugin. I am creating options like this: register_setting('mediaport-...
0
votes
0answers
20 views

WordPress nginx reverse proxy + WPML

We have a setup where we have a https://blog.example.com nginx server with WordPress installed and we want it to make it work via https://www.example.com/{language}/blog. Note that we also use WPML ...
0
votes
0answers
22 views

redirect after logout woocommerce

add_action('wp_logout','my_logout_redirect'); function my_logout_redirect() { wp_redirect( 'https://www.myweb.se/bye/' ); exit; } THIS IS WORKING but i want it to work on all languages so for ...
0
votes
0answers
8 views

Hello, I would like to direct logged in users to a front end dashboard upon logging in. How can I achieve this?

Please see attached picture for an idea of what I wish to do. To add on, ideally, different content should be shown for different user type. Please suggest light weight plugins as I’m not a developer ...
0
votes
0answers
46 views

WPML: WP_Query + suppress_filters not working

I'm working on a fix to a WordPress multi-language site using WPML. This website has two different domains, one for english and one for french. French is the main language. For all the website when I ...
0
votes
0answers
17 views

wordpress __() gettext problem

I am using WPML string translation to translate strings in my site. When I check the theme file the gettext functions are written without a second argument eg: __('some text to translate') But after ...
0
votes
0answers
29 views

Custom rewrite rules not working with WPML

I have custom rewrite rules for posts on a WordPress website. The website is in french and I just added WPML to make it available also in english. WPML is configured to use directories (/en) for ...
1
vote
2answers
105 views

Bypass “supress_filters” in WP Query

Apparently, for some illogical reason, the developers decided that the only way to fetch posts in all languages, is to add supress_filters=true to the WP_Query (instead of having like say, a ...
0
votes
0answers
30 views

$.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
37 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
16 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
32 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
109 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
36 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
86 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
85 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
20 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
207 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
30 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
75 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
50 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
32 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
198 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
9 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
353 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
26 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
267 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
1answer
87 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 ...
2
votes
1answer
246 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
26 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
1answer
31 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
41 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
32 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
296 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
264 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
415 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
381 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
164 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 ...