Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with translating the FAQ page where the shortcode does not translate the numeric attributes correctly, it might be due to incorrect XML configuration.
Solution:
We recommend two approaches to resolve this issue:
1) You can add a filter to translate the ID inside the Translation Editor. This filter will allow you to point to the translated ID. For detailed instructions, please visit https://wpml.org/forums/topic/translate-numbers-in-shortcodes/#post-12429453.
2) Alternatively, you can deactivate the WPML Translation Editor and manually replace the ID in the Elementor UI. For more information on how to do this, please check https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/.

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. Should you need further assistance, please do not hesitate to 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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Marcel 1 year, 8 months ago.

Assisted by: Marcel.

Author Posts
July 26, 2024 at 2:41 pm #16009096

eddieA-3

Thank you, I added an "FAQ" page today and the questions/answer does not get translated either. I have registered the shortcode in the XML config.

July 26, 2024 at 2:52 pm #16009128

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Vienna (GMT+01:00)

Hi,

the XMLs you added are incorrect; you are missing all shortcode attributes. But this will not work for your shortcode "[epkb-faqs group_ids="81,80"]", as it's using a page ID as a numeric attribute.

YOu have two ways to solve it:

1) Add this filter to translate the ID inside the Translation Editor and point it to the translated ID: https://wpml.org/forums/topic/translate-numbers-in-shortcodes/#post-12429453

2) Deactivate the WPML Translation Editor and replace the ID manually in the Elementor UI: https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Best Regards
Marcel