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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 6 months ago.

Assisted by: Prosenjit Barman.

Author Posts
November 14, 2023 at 4:14 pm #14800687

markoL-13

Problem Description:
We have a multilingual website in Slovenian and English, and certain content, such as the new member form and events, is intended to be displayed in both languages. However, we are experiencing discrepancies in the language display when accessing member and event pages, particularly with the header and footer.

Specifics:

Member Pages: When a non-logged-in visitor clicks on a member in the member list (grid view on the landing page or designated "members" page), the header of the member's post page is displayed in the language in which the form was filled. However, if the same action is performed as a logged-in user, the language of the header and footer becomes the same as the website's default language.

Events: Similar to member pages, events are also affected. Despite setting the content to be the same, language discrepancies occur in the header and footer when accessing events.

URL Issue:
The problem also extends to the URL. The Slovenian language is displayed on domain.net/sl, but when clicked by a non-logged-in user, the language is not distinguished in the URL. Manually inserting /sl/"memberurl" resolves the issue, displaying the full page in Slovene. However, starting from English shows Slovene headers on content originally set in that language.

Attempts to Resolve:
We have diligently updated all components of the website, including WP, themes, and plugins. PHP version is 8.2, and we have cleared the cache multiple times across various options. WPML settings have been checked thoroughly, and all tables have been cleared. Despite our efforts and waiting for the latest updates, the issue has persisted for the past two months.

Attachments:
Attached are files illustrating the discrepancy in language display on member and event pages.

an event subpage originally from english site with members - non logged in - originally written in english (1).png
a memeber subpage originally from english site with members - non logged in.png
November 16, 2023 at 9:46 am #14823839

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for contacting us. I appreciate your clear and detailed explanation of the issue.

I have reviewed the Member and Event pages and understand the issue. Could you please confirm whether the Events and Members were created when the Slovenian language was active?

Based on the WPML Debug Info, I noticed that the translation setting for the Member and Event post types is currently marked as "Not Translatable". If you wish for these posts to be available in other languages, you can change their translation preference to "Translatable - use translation if available or fallback to default language". This can be done by navigating to the "WPML > Settings > Post Type Translations" section.

If the member and Event post was created while the Slovenian language was active, the adjustment above would probably solve the issue.

If the issue persists even after that, please check the conditions applied for the default and translated Header.

Let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

November 21, 2023 at 10:13 am #14885327

markoL-13

Prosenjit,
thank you for this proposed idea. However, the proposed solution does not fully address my client's requirements.

My client's primary concern is to have the ability to manage content (member data and events) in a single language. This content should then be displayed on the front end for non-logged-in users in the same manner it appears for logged-in users. Currently, the language switching option only functions for non-logged-in users.

The previous configuration was intentionally implemented to achieve this functionality. However, with the recent changes to the settings, the only noticeable difference on the front end is an additional language selection option in the header. The expected behavior of the header and footer remains unchanged.

This modification still presents challenges for my client, as it introduces the risk of mixing languages inadvertently. The requirement for content confirmation in both languages for all posts significantly increases my client's workload and time spent on the same task.

I hope that your assistance in exploring alternative solutions will restore the previous functionality while ensuring that content can be managed and displayed in a single language for non-logged-in users.

Thank you.

November 22, 2023 at 4:33 am #14892707

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

Please be informed that if the Translation preference is set to "Translatable - use translation if available or fallback to default language," posts made in the default language will automatically be shown in other languages on the frontend when translations are not present. There's no need to translate these posts if you wish to manage the content in a single language.

However, Upon re-examining a Member profile, I observed that the Header and Footer, which previously appeared in Slovenian, are now displayed in English. Please check this screenshot for a better understanding: hidden link

The content also appears correctly in every language on the frontend for users who are not logged in. If the same is not happening for you, would you kindly check by clearing the caches from the site and browser as well?

Please feel free to let me know if you need further assistance in this matter. I will be more than happy to assist.

Best regards,
Prosenjit

The topic ‘[Closed] Some posts when visited as non-logged in get a header form another language’ is closed to new replies.