Background of the issue:
I've completed translations of the site for 7 languages. All of them have dynamic content rendering as expected, except for Chinese Simplified. In many places, instead of showing translated page titles, or untranslated post titles (intended to remain in English), they show the dynamic code instead [e.g. {}{dc:post:title), or {}{DC:POST_TYPE}]. I've cleared the site, WPML and browser caches, but it hasn't helped. Link to a page where the issue can be seen: hidden link
Symptoms:
These titles should show translated Chinese (Simplified), if provided, or English in the case of the post titles which only exist in English. Instead, I got: [e.g. {}{dc:post:title), or {}{DC:POST_TYPE}]
Questions:
Why is the dynamic content not rendering correctly for Chinese Simplified?
How can I fix the issue with dynamic code showing instead of titles?
May I ask you to create a dummy page and use the dynamic content with just one widget?
My guess is that you use the Pro theme dynamic feature so I need to know if this is happening on a specific context or any page you create now will have the same issue for Chinese.
The fact that it works for other languages and not Chinese give an idea that it might be an environmental-related issue and not core WPML code.
If the issue persists with the new page, please do as follows:
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except:
. WPML Multilingual CMS
. WPML String translation
. WooCommerce
. WooCommerce Multilingual
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
Also please set the next reply as prviate and under the WordPress Access provide the login information and the user/pass needed to be able to se ethe website. Currently there is an htaccess password that prevents me to check the front end of the website.
Needless to say that you will need a complete backup of the website before providing the login information.
First of all, thank you for the detailed explanation. That helped me a lot to identify the possible problem. I think I managed to fix it by moving a character inside the curly braces in the Advanced Translation Editor.
Thank you, Christopher. That will certainly help fix the issues in those titles where I have direct control in the ATE.
That does not help me on the home page, however, where the Post module automatically generates the most recent posts. Since the system generates that, I don't have control of the individual titles in the ATE.
I found the same bracket issue on the News and Events page and was able to fix it in the ATE there.
I then dug deeper into the ATE for the home page, and found the placement of brackets for the Posts module. They were already correct—but I applied your fix with flagging each of them, then unflagging them before saving. I think that fixed everything!
I'll let you know if I find any other issues, but I hope that takes care of it!