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.
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.
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.