Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue where translated articles were appearing in every domain's article flow instead of being restricted to their respective language domains.
Solution:
First, we ensured that WPML was active and that the front page template code included the necessary adjustments. We added

'suppress_filters' => 'false'

to the query arguments to ensure that the filters are not suppressed, which is essential for WPML to filter content by language.
Next, we navigated to WPML-> Settings-> Post Type Translation section and set the posts to "Translatable - only show translated items". This ensures that only the posts translated into the current language are displayed on the site.

If you're experiencing a similar issue, we recommend you try the following steps:
1. Activate WPML if it's not already active.
2. Ensure that your front page template code does not suppress filters by adding

'suppress_filters' => 'false'

to your query arguments.
3. Go to WPML-> Settings-> Post Type Translation and set your posts to "Translatable - only show translated items".

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 27 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 1 month ago.

Assisted by: Osama Mersal.

Author Posts
April 19, 2024 at 1:15 pm #15543830

zachariasD

Hello,

When translating articles and posting them all translations appear in every domains article flow and not on each page, how do we set this up correctly? (original domain kimura.se)

April 21, 2024 at 11:54 am #15547109

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply; it was due to a higher workload. Please go to WPML-> Settings-> Post Type Translation, and set the posts to "Translatable - Show Only Translatable Items".

If that didn't help, please share screenshots or a screen-recorded video while reproducing the issue.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

April 22, 2024 at 6:36 pm #15552672

zachariasD

Hello, thank you.

1) That setting is already in place.

2) Yes, sent the debug

As you can see in the images, when adding the translation from Swedish (original language) to English both articles appear in the flow on the Swedish version of the site.

All the Swedish articles are in the flow of the English version of the site aswell.

So all translations appear in all versions of the site for some reason 🙂

Screenshot 2024-04-22 at 20.35.39.png
Screenshot 2024-04-22 at 20.30.53.png
Screenshot 2024-04-22 at 20.30.39.png
Screenshot 2024-04-22 at 20.30.11.png
Screenshot 2024-04-22 at 20.30.02.png
April 23, 2024 at 10:16 am #15554956

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

April 23, 2024 at 10:25 am #15555104

zachariasD

Sure, can we continue the conversation on email?

Ill try to recreate the issue on our staging site. I have one question though, since the live site is connected to the custom domains, should I do subdirectories for the translated sites on the staging site? Since both sites cant use the custom domain and we dont want to re-configurate the domain settings.

April 23, 2024 at 10:28 am #15555122

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) This is an email ticket, so you will get an email notification when we reply, but you need to reply here in the forum.

2) You can select subdirectories in the staging site.

Best regards,
Osama

April 24, 2024 at 6:15 pm #15562461

zachariasD

Okay,

Activate the private chat option again and Ill share the staging site info. I successfully replicated the issue 🙂

April 25, 2024 at 8:01 am #15563811

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) I've enabled the private reply for you.

2) Please let me know the steps to reproduce the issue.

Best regards,
Osama

April 26, 2024 at 12:50 pm #15570703

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. I tried to deactivate the plugins to check for a plugin conflict, but I got a fatal error caused by your theme. Please deactivate your theme using FTP access.

Thanks,
Osama

April 26, 2024 at 7:45 pm #15571982

zachariasD

Ill just restore the backup from the live site, I think you cant really deactivate the plugins since it is a custom theme.

You could possibly change theme in the staging before deactivating. But how will you find out if it is double posting if you cant see it in the theme?

April 26, 2024 at 9:24 pm #15572168

zachariasD

Did the backup, please look at another way to find what is wrong instead of deactivating plugins.

Is this the first time someone has this issue? 🙂

April 27, 2024 at 1:01 pm #15572892

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) You use a custom theme, which could be part of the issue because the issue won't happen using a standard WordPress theme or a page builder.

2) I created a new sandbox site with ACF installed and your field groups and post types imported. Please log in to this sandbox site and install your theme. (hidden link)

After that, please create a test post and translate it to replicate the issue.

Best regards,
Osama

April 29, 2024 at 7:56 am #15575359

zachariasD

Hello again,

Sorry for the slow replies. I've done as requested in the sandbox 🙂

April 29, 2024 at 8:17 am #15575380

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for replicating the issue. Please try replacing (get_posts) with (wp_query) in your front-end template and check if that fixes the issue.

Best regards,
Osama

April 29, 2024 at 8:54 am #15575683

zachariasD

I dont know how to do that 🙂

Where do I start?