Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - -
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

This topic contains 0 replies, has 0 voices.

Last updated by Itamar 1 day ago.

Assisted by: Itamar.

Author Posts
November 17, 2024 at 10:25 am #16411549

7107 Digital

Background of the issue:
I have a custom post type called 'Projects' with 78 posts. 10 of these are 'featured' and have been translated into all languages. The rest need to appear in the original language, which is English. In Settings - Post Types Translation, I have checked 'Translatable, use translation if available or fallback to default language'.

Symptoms:
Only the projects which I have completed the translations for are showing. I need all the projects to show, and if they haven't been translated yet, the English version should appear.

Questions:
How can I ensure that all projects appear, with untranslated ones showing in English?
Is there a specific setting in WPML that I might be missing to achieve this?

November 17, 2024 at 8:03 pm #16412081

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

The setting 'Translatable, use translation if available or fallback to default language' should allow you to achieve that.

The WordPress version on your site is the recent version 6.7. However, WPML and Strings Translation must be updated to the latest versions compatible with WP 6.7. We recently released WPML 4.6.14 and Strings Translation 3.2.15. Please update our plugins and check if it solves the problem.

If you don't see the new versions in the plugins section, please go to the following location on your site and click the 'Check for updates' button.
hidden link

If the above does not help, please give me access to your site and explain how to see this problem. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

November 18, 2024 at 10:43 am #16414148

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for the access details.

Is this the correct page to see that problem?

hidden link

If I switch the language to something other than English, no projects appear, except Chinese, which shows 4 projects.

Can you please confirm?

I also tried to set the project taxonomies accordingly. The taxonomies are Categories, Typology, Services, Regions, and Scales. In WPML -> Settings -> Taxonomy Translation, I could see that Services, Regions, and Scales were set to not translatable, so I changed them to 'Translatable, use translation if available or fallback to default language'. Please see the attached screenshot. This, unfortunately, didn't help. In WPML -> Taxonomy Translation, I selected Categories. I could see that Featured Projects was only translated to Chinese, so I copied the term to all the languages. Please see the attached screenshot. This, unfortunately, also didn't help. I also wonder why Categories of Projects are mixed with the WP regular post categories. Something seems wrong about it.

Can you please tell me which plugin adds the projects' custom post type and its taxonomies?
Is it a custom post type you developed?

Please read the following guide on Displaying Untranslated Content in Secondary Languages and ensure you set everything correctly.

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/

Regards,
Itamar.

2024-11-18_11-57-15.jpg
2024-11-18_12-15-01.jpg
November 18, 2024 at 12:49 pm #16414864

7107 Digital

So yes, I have 78 projects. 10 of them have been translated into all languages, but so far I have only put in 4 of them in Chinese. If I have not put in the translations yet, I want to see the English version instead. How can I do this?

The posts are created using the WCK custom post plugin:
hidden link

November 19, 2024 at 1:46 am #16417236

7107 Digital

I'm still confused by the link you sent. For sure I don't want to duplicate content because I don't want other languages to change when the default language is updated.

However, I also want the default language to show if there is no translation but it says in the guide:

"For example, in WooCommerce, if you have the Translatable – use translation if available or fallback to default language setting enabled, you won’t see any items on the archive page for your taxonomies in the secondary language. You must change settings for your products to Duplicate. After this, you can use translated taxonomies on your product pages."

Which seems to suggest that I can't do what I want? Sorry, I'm confused how to achieve what I need. For sure it's budgetary/ time related as there are not enough resources to translate all 78 projects into 7 languages, but the main ones are ready to go.

Thank you

November 19, 2024 at 1:01 pm #16419753

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I've further investigated this issue on your site, and I think the problem is with the page's search feature. I think this feature is added using the Ajax Search Pro plugin. Please see the attached screenshot. Can you please confirm this?

My investigation included testing if the archive pages of the project taxonomies work. For English, the default language, it works. For example, I checked the Typology 360 term archive page hidden link. So, I translated the 360 term into French (I copied the term name as it is just a number.) And I can see that the archive page in French is working alright - hidden link. There are two 360 projects showing. If you click them, you will see the project. For example, here hidden link. The link is still in French language /fr/, but the content, as expected, is in English. So by this I can conclude that the option 'Translatable, use translation if available or fallback to default language' works.

If you confirm this, then we will need to test the Ajax Search Pro plugin on a test site and if needed esclate this issue to our compatibility team.

Regards,
Itamar.

2024-11-19_14-15-16.jpg
November 20, 2024 at 1:14 am #16422062

7107 Digital

Hi,

Yes I can confirm it's using the Ajax Search Pro plugin.

We are migrating this site to live (files already downloaded), so this staging access you have can be used for testing.

Thanks,

Jan

November 20, 2024 at 3:00 am #16422163

7107 Digital

In the meantime, is there any way that we can show all projects in all languages? Even if we duplicate?

November 20, 2024 at 6:48 pm #16426278

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Yes, you can use the duplication option and then translate only the project you need. I tested it in French. In WPML -> Translation Management -> Dashboard, I duplicated all the projects into French and then translated one of them, the Tiffany & Co. project. You can see it is working here.

hidden link

Please see the attached screenshot.

Then, when you use the filtering options, it works. For example, you can filter to show only hotels.

I recommend you use this method.

Please let me know if you have any further questions.

Regards,
Itamar.

2024-11-20_20-39-17.jpg