Problem: You want to display different currency indicators depending on the language version of the website. Specifically, you want to show 'KWD' for the English version and the Arabic symbol for the Arabic version, but currently, only the Arabic version of the currency shows on all languages. Solution: This functionality is not directly available with WCML, but it can be achieved through custom work using WooCommerce hooks. We recommend reviewing the solution provided in this forum thread. NOTE: Custom code is not supported by our team. Always ensure you have a recent and working backup before implementing any changes recommended by our team or a third party.
If this solution does not apply to your case, or if it seems outdated, 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 you still need assistance, please open a new support ticket.
to create translations of products and find that it does not copy product attributes, you might encounter difficulties in achieving complete product translations. Solution: First, ensure that in WPML > Settings, under Taxonomy translation, the translation preference for Attributes is set to "Copy". If this does not resolve the issue, you can manually copy product attributes using custom code. Here's a step-by-step guide: 1. Create an independent translation of the post in the target language using
4. Set these attributes to the translated product with
$translated_product->set_attributes($attributes);
5. Save the translated product with
$translated_product->save();
If you need further customization, consider hiring a developer from 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 the issue persists, please open a new support ticket at WPML Support Forum.
Problem: The client is experiencing an issue where string translations are not showing on the front-end when the string checker is disabled. They have tried solutions from other tickets without success. Solution: 1. We recommended updating WordPress and all plugins to ensure compatibility and resolve any potential conflicts. 2. We advised the client to check the WPML -> String Translation section to ensure that strings related to the theme are correctly translated and that no multiple text domains are causing conflicts. 3. We suggested installing the Contact Form 7 Multilanguage addon to help with translating contact forms.
4. The issue was resolved by adding the correct text domain to the styles.css file of the theme (as it was showing two different ones on WPML -> String translation).
If this solution does not resolve your issue or seems outdated, we 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 the problem persists, please open a new support ticket.
Problem: The client is experiencing an issue where a SQL query sorts posts by a custom meta field 'trainings_display_date_start' on the homepage. This works correctly on the non-translated (English) page, but not on the translated page, resulting in no posts being returned. Solution: 1. Ensure that the 'trainings_display_date_start' is copied over to the translated posts so there is meta data to sort by. 2. Include a meta query that returns only posts with a start date and then sort by that start date. 3. Verify that the posts are translated and published in the second language. 4. Test the issue with the WP default theme and only WPML plugins enabled to see if the issue is caused by something else.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. We also 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. For further assistance, please contact our support forum at WPML support forum.
Problem: If you're experiencing issues where related posts in the API still appear in the original language despite having translations, and your code works locally but not on the live site. Solution: We recommend you follow these steps: 1. Navigate to WPML-> Languages. 2. Select 'Different languages in directories' in the Language URL Format section. 3. Save your changes. 4. Resave the permalinks. 5. Check the translated endpoint with '/en/'.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please open a new support ticket. 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. For further assistance, you can also visit our support forum at WPML Support Forum.
Problem: You are trying to display a translated profile field in a different section than the default Profile section on your website. Specifically, you have moved the field to the 'Profile header' using custom code, but the field displays in English instead of the selected language. Solution: To ensure the field displays in the correct language, you should use the
wpml_translate_single_string
hook instead of the
wpml_object_id
filter, as the latter is intended for filtering post types by ID. Here is how you can modify your code:
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.