Skip Navigation

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
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bruno Kos 8 months, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
March 6, 2024 at 1:01 pm #15379413

coinQ

Last mod date sync issue

March 7, 2024 at 12:59 pm #15384418

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

I checked this on my localhost and can also confirm what my coleague said:

"Please note that in order to sync everything across the other languages, it is required to update the translation right after saving any changes in the default post/page. The configuration to copy the post metadata to other languages will only take effect once the translation is updated."

So let's say that you have this on the post template:

<?php
// Get the last modified date
$last_modified_date = get_the_modified_date();

// Check if the post has been modified
if ($last_modified_date) {
    // Display the last modified date
    echo 'Last updated on ' . $last_modified_date;
}
?>

If you modify original, last modified date on the translation will only get updated when you:
- open the translation
- translate new texts/update changed
- complete to 100% and close the translation window

The topic ‘[Closed] Last mod date sync issue’ is closed to new replies.