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.
184
questions
0
votes
0answers
11 views
WooCommerce reviews/comments in different languages [closed]
My shop has 8 languages.
We have comments in Dutch, English, German, French for our products. For the other languages we don't have that much reviews. This is fine.
I have created a seperate page to ...
0
votes
0answers
16 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(
...
0
votes
0answers
17 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
10 views
Copy the same post in custom post type in different language(WPML)
On my website, I'm using WPML and there are two languages DE & EN. DE is the default language so whenever I'm creating posts from API that runs via cron, that adds posts only in default language ...
0
votes
0answers
8 views
WPML Media library languages tabs is not showing
I'm using WPML and I had in Media Library duplicated images for each language. I disabled it but now I need to enable it again. There were languages tabs on the top and I could switch between them. I ...
0
votes
0answers
12 views
MO functions causing significant time on load - Wordpress - WPML
Is there a way to enhance localization as its notably having a huge hit on load speed, is this speed normal on a testing server(shown below on webgrind)? if there are any suggestions it would be ...
0
votes
0answers
6 views
Language switch not available in posts menu
I have a problem that my language switching options are not available for one part of the website. It is not showing german switch possibility in posts. Do you have any idea why it is not showing ...
0
votes
0answers
13 views
WPML Homepage as root page (directory for default language)
I'd love to have
example.com as my homepage
example.com/en/ as my translated homepage
example.com/cs/services for pages in the default language
example.com/en/services for translated pages
WPML offers ...
1
vote
1answer
16 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 ...
2
votes
1answer
17 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>';
...
0
votes
1answer
28 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 ...
0
votes
0answers
12 views
WPML specific language user permissions
I am setting up a multilingual website and I am considering WPML. I need the site to have specific access control for editors of different languages. For example, I need the people that edit the ...
0
votes
0answers
12 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 ...
1
vote
0answers
20 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 ...
0
votes
1answer
55 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 "...
1
vote
0answers
11 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 ...
0
votes
0answers
16 views
Error 503 with wp_delete_attachment
I´m doing a plugin which must do an import from an api.
Inside this import, I have to removed phisicaly pictures before saving new ones.
For some reasons this line code wp_delete_attachment( $...
1
vote
0answers
18 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 ...
0
votes
1answer
123 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 ...
1
vote
0answers
12 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 ...
-1
votes
1answer
43 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 ...
0
votes
1answer
184 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 ...
0
votes
1answer
22 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
7 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
72 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
21 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
10 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
1answer
36 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
6 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
23 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
26 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
38 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
181 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
10 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 ...
1
vote
0answers
588 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
29 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 ...
1
vote
0answers
59 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
374 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
210 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
76 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 ...
1
vote
0answers
57 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
199 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
50 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
1answer
233 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
254 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
1answer
667 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
122 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 ...