This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to display selected English translated posts in other translated languages using Advanced Custom Fields, but face issues where the database query reverts to the current page language. Additionally, using the 'use translation if available or fallback to default language' option disrupts pagination.
Solution:
We recommend implementing a custom solution where you switch the language on-the-fly to the desired one, query the intended posts, and then switch back to the current language for the rest of the process. This approach is not supported out of the box by WPML, as it is designed to display content based on the "current language" only. You can use WPML's filters and action hooks for proper multilingual support in your theme or plugin. For more details, visit the following resources:
If you require further custom work, consider contacting WPML Contractors at WPML Contractors.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket at WPML Support Forum.
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.
This topic contains 1 reply, has 0 voices.
Last updated by 1 month, 2 weeks ago.
Assisted by: Waqas Bin Hasan.