Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 6 replies, has 0 voices.

Last updated by Bobby 20 hours ago.

Assisted by: Bobby.

Author Posts
August 14, 2025 at 6:11 pm #17321891

henrikO-8

Background of the issue:
I am trying to translate shortcode content. I have added the texts via 'Admin Texts Translation' so they are visible in the String Translation Manager. From here, I have updated one language, but there is no effect on the front end. The issue can be seen on this page: hidden link.

Symptoms:
I expected to see 'Estimated delivery: 2-4 days' translated to Danish, but instead, I got nothing.

Questions:
Why are the translated strings not appearing on the front end?
Is there a step I am missing in the translation process for shortcode content?

August 15, 2025 at 9:42 pm #17324263

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Please go to WPML String Translation and in the admin strings screen search for this string once again:

Estimated delivery: 2-4 days

If located, verify that every instance of it is added in case of duplicates.

Once added go back to WPML-> String Translation and verify that all duplicates/instances of it are all translated.

---> Clear the cache.

Let me know your results, please.

August 18, 2025 at 12:49 pm #17327803

henrikO-8

Please see attached screenshots. Do we really need to "translate" the PHP block as seen here?

It looks like WPML recognizes the shortcode inserted... that is just not working though.

Screenshot 2025-08-18 at 14.48.05.png
Screenshot 2025-08-18 at 14.47.28.png
August 18, 2025 at 10:12 pm #17329536

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

What are your results if you click on the + for the code block, then duplicate it into the translation and within it simply translate ONLY the string.

Let me know your results, please.

While this is rare I have seen a similar case in the past.

August 19, 2025 at 6:45 am #17329785

henrikO-8

I have tried that as well now, with no luck. Do we need to do anything special for a translation to take effect? We have no caching on at the moment.

August 19, 2025 at 7:17 pm #17332637

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Nothing special should be done, just translation.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

August 22, 2025 at 11:45 pm #17341505

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

I can see the shortcode [estimated_delivery] is used.

Where is there shortcode pulling the data from?

This is important because WPML by itself will not know to register this content.

Typically admin texts are reserved for strings coming from theme options.

I have additionally attempted registering the shortcode via wpml-config.xml but this did not help.

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>estimated_delivery</tag>
      <attributes>
        <attribute>text</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

If you could please sahre with me where this shortcode is pulling the data from it will help me better understand how we can register it.