This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to translate a shortcode from the ARPrice plugin, which is not natively supported by WPML. They have followed the instructions for translating custom shortcodes with WPML and added custom XML code to the
wpml-config.xml
file and a filter to the
functions.php
file of their theme, but they are unable to find the ID in the advanced translator.
Solution:
We recommend the following steps to translate the shortcode:
1. Create a page and insert the shortcode.
2. Navigate to WPML->Settings->Custom XML Configuration and add the provided XML configuration:
<wpml-config><br /> <shortcodes><br /> <shortcode><br /> <tag>ARPrice</tag><br /> <attributes><br /> <attribute>id</attribute><br /> </attributes><br /> </shortcode><br /> </shortcodes><br /></wpml-config>
3. Add the filter
add_filter( 'wpml_tm_job_field_is_translatable', '__return_true' );
to the theme's
functions.php
file.
4. Return to the page, make a minor edit, and update it (this step is crucial).
5. Add or edit the translation and search for the shortcode ID, such as '100'.
If you're experiencing this issue, we recommend trying the steps above. However, if the solution does not apply to your case because it might be outdated or not relevant, we suggest opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
If further assistance is needed, please contact our support team.
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.