Background of the issue:
I am trying to translate accordion titles on a WordPress page using WPML. This issue occurs in all environments. When I create a page and add an accordion with a title containing an '&', like 'Pre-IPO and M&A due diligence', the Advanced Translation Editor in WPML shows the translated value correctly. However, the title does not appear translated on the actual page. This issue is consistent with every title containing an '&'. We have not updated the accordion block, so this issue is happening with the core accordion block in WPML. The issue can be seen on this page: hidden link.
Symptoms:
The accordion title containing an '&' is not translated on the page, despite appearing correctly in the WPML Advanced Translation Editor.
Questions:
How do we resolve the issue of accordion titles not displaying the translated version when they contain an '&'?
Thanks for contacting us. Please backup and update all WPML plugins in WP > Plugins > Add New > Commercial Tab. Then, make minor changes to the primary language page and retranslate the page and let me know if the issue is resolved.
Updated plugins and created a new page. I've added images below that show the flow of the whole process. I create a new page, add a details block with a title that has a "&", I create a translation for japanese and go to the advanced editor to add the translations in, save the translation and then view the newly created page.
I also used the wp cli to get the content of this new page so we can see the block code that is saved by WPML when creating the page:
Thanks for your reply. I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
We will need to get approval from the client and they'll need to provide access but in the meantime can we schedule a zoom meeting where i walk you through anything and you can guide me on any actions you would like to see? This would be the quickest and easiest solution. This site is hosted on WordPress VIP also.
Thanks for your reply. Unfortunately, we’re unable to provide support via Zoom at the moment. You can either clone your site to a staging environment, remove any sensitive data, and share the access credentials with me so I can troubleshoot it there.
Alternatively, I can create a sandbox site for you to replicate the issue.
Which option would you prefer?
Thanks for your reply. You can login to the sandbox site using the link here hidden link . Feel free to install the plugins/theme that is required to replicate the issue.
Thanks for your reply. I can see the issue now and I've escalated this to our 2nd Tier Support for further investigation. I will come back to you once I've feedback.
Thanks for your reply. I've checked the report, and our 2nd Tier Support is still actively checking on this. I will come back to you once I've feedback.