This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to retrieve WPML current languages and their flags using specific code, but the queries return null values on a custom post type (CPT) archive page named 'products'.
Solution:
1. Ensure that the 'products' page is translated. This is crucial for WPML to retrieve the correct language data.
2. Change the translation setting for the 'products' post type. Go to WPML-> Settings-> Post Type Translation section, and set it as 'Translatable - use translation if available or fallback to default language'.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
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 0 reply, has 0 voices.
Last updated by 9 months, 3 weeks ago.
Assisted by: Osama Mersal.




