Skip to main content

Questions tagged [plugin-wpml]

WPML is a multilingual WordPress Plugin, questions about WPML are off-topic here and not in this stacks scope. 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
1 vote
0 answers
19 views

How to Dynamically Change the author_base URL Slug by Language in WordPress?

I am working on a multilingual WordPress site using WPML and I am trying to adjust the author_base URL slug based on the user's language. My goal is to have different slugs for each supported language ...
Robin Martijn's user avatar
0 votes
1 answer
16 views

WPML posts_joins on translated items

I found a way to filter the search query so it goes though the product_cat title and description to look for a term and then display all the connected product. I am now looking for a way to make it ...
allumette's user avatar
0 votes
1 answer
433 views

WPML – PHP Fatal error: Uncaught Error: Call to undefined function str_contains()

I am using PHP 7.4.33 and WPML auto updated itself and appears to be using str_contains() although the PHP version doesn't support it yet. The error in the apache logs are: [Thu Dec 14 14:33:03....
Wadih M.'s user avatar
  • 2,898
0 votes
0 answers
25 views

Handling gettext / string translation when WP is installed in subfolder

My setup I have a custom PHP application that uses po/mo files in a locale directory to provide translations for the website strings. All works perfectly. I have Wordpress installed in a sub-directory ...
mayersdesign's user avatar
0 votes
1 answer
45 views

WPML is blocking WP core update

I am tryin to update the core of Wordpress to 6.2 from the site desktop for a company whose WPML contract has expired. This is the error I get from WP: "WPML String Translation is trying to write ...
IvanSanczewski's user avatar
1 vote
0 answers
25 views

Translate Woocommerce tab

I have added a new tab in Woocommerce but I can not find how to add translation to it (I am using WPML plugin) do anyone has an idea how to deal with that? I need translation of the content of title ...
codingteam's user avatar
0 votes
1 answer
85 views

How to find posts that are missing translation? (wpml)

I have a page with hundreds of posts that should all be available in two languages. In the admin area however I have differing post counts – so I guess some of the posts are not translated. Instead of ...
tillinberlin's user avatar
0 votes
1 answer
148 views

WPML Translate term meta not synced

If we have a term_meta named icon which gets an integer and is set to copy when you translate a term with this meta programmatically it won't get copied to the translated term. $ok = ...
Steve Moretz's user avatar
0 votes
0 answers
40 views

Many big issues in the website, WP_Debug not showing

I have this website https://itds.pl/ suddenly it started working really bad and I can't find the reason. Website is Multi website system Using WPML Using ACF Have two domains: Main domain Eng and has ...
Tanya Nami's user avatar
0 votes
1 answer
46 views

How to automatically translate plugin using translate.wordpress.org

Is there a way to automatically download translations for a plugin from translate.wordpress.org. I'm testing with WPML String Translation. The plugin has about 20 untranslated strings and I need a ...
Snels Nick's user avatar
1 vote
1 answer
53 views

Should I include colon in my msgid in PO file? [closed]

Which of the below is recommended when creating msgid a PO file? msgid "Available Balance:" or msgid "Available Balance"
ratib90486's user avatar
0 votes
0 answers
38 views

Page not visible in 'All pages' after being added through PHP

I'm adding some pages pragmatically as a subpage. This all works well on a test website in 1 locale. However, on the live website we have WPML with 2 locales. When adding them there, these pages DO ...
Peps's user avatar
  • 53
0 votes
0 answers
27 views

Line Breaks are stripped off when direction property is found

The line breaks are stripped off when the p tag has a dir attribute inserted, to explain further I'll list some examples. Let's say we have 2 lines of text as following <p>Text Paragraph Number ...
David Buik's user avatar
0 votes
1 answer
77 views

Why template_include filter does not work with WPML plugin?

I have some issue with WPML. I use two different product page fro the phisical product and for the video lessons. Now I added one more language to the project ussin WPML plugin. And It's okay but my ...
Victor Sokoliuk's user avatar
0 votes
0 answers
15 views

Translation of one of the languages is not displayed on the site

I use Upstore theme and the website has 2 languages (Estonian and Russian). I translate some strings from WPML String translation from English to EST and RUS. But on the website only Russian ...
lisa's user avatar
  • 1
0 votes
1 answer
364 views

Making WP theme / plugin multii-lingual without plugins

I am new to theme and plugin development and am stuck at the translation part. I read one place that if you are using __(), and e() throughout, you do not need a plugin like WPML. Is it correct? Is ...
Raging Vids's user avatar
0 votes
0 answers
132 views

Syncing WP Database Changes Between Environments: How To Handle Merging w/o touching database

I have a staging site which is originally a clone of the live site. On a staging site, I made some changes such as creating new pages, installing new plugins, adding new medias etc. Meanwhile the live ...
DevSS's user avatar
  • 1
0 votes
1 answer
298 views

WPML best page selector with php

I have a multilingual website made with WPML. I have php code to run across pages but I cannot uniquely target the page with is_page(ID) since the ID of the page changes across language domain. I need ...
Enrico's user avatar
  • 109
0 votes
0 answers
31 views

Custom Enfold theme tab layout not compatible with WPML

I'm trying to create a new page with the Avia Layout Architect but there are some problems. I used the health check plugin to disable all plugins and tested if the tab works with my custom theme, ...
beld's user avatar
  • 1
0 votes
0 answers
110 views

Structure of multilingual and multiregional directory listing website for translation

What is the best translation structure for a multilingual and multiregional directory website? Let's say our listing owners as members of our work team are from around 20 different countries with ...
Bahram's user avatar
  • 1
1 vote
0 answers
2k views

Change ICL_LANGUAGE_CODE for WPML

I got an error: PHP Warning: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP) in <path/functions.php on line 19 So I ...
bsomar's user avatar
  • 13
0 votes
0 answers
474 views

get_posts function not returning any results

I'm currently working with WP and also using WPML. I'm trying to retrieve posts using the function get_posts but the function is not working. This is what I'm trying so far. $posts = get_posts(array( ...
Steven Aguilar's user avatar
0 votes
0 answers
140 views

Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice

We run a custom WP theme with some plugins including Yoast SEO premium and WPML. We also run a version without WPML. In the version WITH WPML subcategories (quite randomly) give back a 404. This seems ...
Justin's user avatar
  • 111
0 votes
0 answers
33 views

An inactive plugin causes an HTTP 404 issue on a translated post - WPML

I help manage https://www.delscookingtwist.com/, a bilingual food blog which runs Wordpress (need I say that?) along with several other plugins including Yoast SEO and WPML. Recently, I noticed 404 ...
David Brossard's user avatar
1 vote
1 answer
70 views

Category applied to pages, creates multiple breadcrumb entries after a search query (On the translated site)

I will try to explain the problem that occurred. Useful info: The site is up to date (plugins, WordPress, PHP). I use a premium theme and to do the translation I use the WPML. I have applied 2 ...
Efstef's user avatar
  • 11
1 vote
1 answer
57 views

WPML custom string translation get outside of container

I am trying to add a custom string to translate in wpml, but when I use the _e(...) the content jumps outside of container if I use like this: echo '<h1>' . $month . ' ' . $day . '</h1>'; ...
Botond Vajna's user avatar
0 votes
1 answer
482 views

Woocommerce product query not working in other WPML languages

I am trying to hide all Woocommerce products from a specific product category on the main shop archive page (products only visible when a customer goes to the specific category archive). The following ...
Senne Vandenputte's user avatar
0 votes
0 answers
22 views

Categories In English version showing not canonical URL, instead shows query search result

I have a multilingual site (WPML), it has Hebrew and English languages. But for some reason in English version categories showing as query string instead of just pass it through URL. What issue can ...
Pavlo Garkusha's user avatar
1 vote
0 answers
80 views

A simple method for disabling WPML language switcher when meeting specific circumstances [closed]

this is not a question but -hopefully- an answer. I realized that more than a couple of people on the WPML forum asked for a solution to this matter, so I thought it could be useful to share my ...
Marks's user avatar
  • 31
0 votes
1 answer
255 views

append currency to URL

I have a wordpress site with multilingual content (WPML) and multiple currencies. What I want to achieve is that I can assign a specific currency through a URL and that that currency then stays "...
J.K.'s user avatar
  • 3
1 vote
0 answers
44 views

WPML - Pages not synced?

I have a problem with WPML and sync pages? Well, when I want to only translate my home page from lang to lang, my page lost her state. E.g - Front Page The content is copied, but the page does not ...
Milosh N.'s user avatar
  • 205
1 vote
0 answers
135 views

How to force change Network site multi language subdirectory base URL?

I have enabled network site and created two sites. Then I enabled WPML plugin on both sites. 1) First one is for English and all LTR languages. This one is working fine because it's base URL is like ...
Iftikhar uddin's user avatar
1 vote
1 answer
2k views

How to save post with different languages and linked them with WPML?

I received a php object ($binding_main_cpt) built from an external API like this : array ( 'post' => array ( 'en' => array ( 'post_title' => 'Villa with magnificent sea ...
J.BizMai's user avatar
  • 870
1 vote
0 answers
34 views

WPML returning posts that are not published

I'm working on a website that uses WPL for translation. The website has 2 languages, french (main) and english. The problem I'm facing is that in a list of posts in the, english version, it's showing ...
André Luiz's user avatar
-1 votes
1 answer
447 views

How to write inner join using posts_clauses?

Can someone please show me how I can achieve the same result with this SQL: SELECT * FROM wp_2_posts INNER JOIN wp_2_icl_translations ON wp_2_icl_translations.element_id = wp_2_posts.id AND ...
robskrob's user avatar
  • 111
1 vote
1 answer
1k views

How To Write An Inner Join With WP Query

I have a ACF relationship field for a custom post type, properties. Moreover, the content of these properties can either be in English or Spanish. When I use a ACF relationship field to associate ...
robskrob's user avatar
  • 111
0 votes
1 answer
155 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 ...
Karthick's user avatar
  • 246
1 vote
1 answer
498 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="" ...
MMK's user avatar
  • 538
0 votes
0 answers
61 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 ...
Mohamed Omar's user avatar
0 votes
1 answer
70 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 ...
David Brossard's user avatar
1 vote
0 answers
160 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 ...
zgall1's user avatar
  • 67
0 votes
1 answer
5k 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 ...
André Luiz's user avatar
1 vote
0 answers
205 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 ...
fdehanne's user avatar
  • 123
1 vote
2 answers
4k 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 ...
FooBar's user avatar
  • 444
0 votes
0 answers
755 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, ...
FooBar's user avatar
  • 444
0 votes
0 answers
14 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 ...
Vivek's user avatar
  • 43
0 votes
1 answer
178 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 ...
Saif Ali's user avatar
  • 101
1 vote
0 answers
216 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 ...
Softec's user avatar
  • 111
1 vote
0 answers
387 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 ...
SirLouen's user avatar
1 vote
0 answers
247 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 ...
Programming Farmer's user avatar