Skip Navigation

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

Problem:
After adding custom code to functions.php to populate post grids in a second language, the 'Intro' field from Unlimited Elements Post Grid is not translating correctly and is pulling data from the original language post.
Solution:
We recommend the following steps to address the issue:
1. Navigate to WPML > Settings and temporarily switch to the Classical Editor.
2. Complete the translations that were problematic.
3. Return to WPML > Settings and switch back to the Advanced Translation Editor (ATE).
4. Continue and finish translating the post.

If this solution does not resolve your issue or seems outdated, we highly recommend checking for 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 the problem persist, please do not hesitate to open a new support ticket at WPML support forum for further assistance.

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.

This topic contains 21 replies, has 2 voices.

Last updated by justinK-16 1 month, 4 weeks ago.

Assisted by: Christopher Amirian.

Author Posts
July 16, 2024 at 12:58 pm
July 17, 2024 at 1:26 pm
July 17, 2024 at 3:12 pm
July 20, 2024 at 1:34 pm #15981464

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I have this message:

I think it is better to use updraft or provide a copy of the database+plugins+theme, this new package it's even heavier, 2.5G.

Is it possible to provide us with the Updraft backup?

Thanks.

July 20, 2024 at 2:40 pm
July 21, 2024 at 11:58 am
July 22, 2024 at 12:50 pm #15986807

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Unfortunately, the Updraft file is just a list of plugins and it is not possible to use it to create the installation on our side.

I want to do one more try to copy the website to our server via the Cloudways plugin.

I tried to login to:

hidden link

But unfortunately, that is leading to a 404 page.

Am I missing something? Is there other URL I should use to access the dashboard?

Thanks.

July 22, 2024 at 1:01 pm #15986888

justinK-16

Hi Christopher

Try it now the WP login URL was changed when I last pushed/cloned the live site a few days ago.

Thank you

July 22, 2024 at 1:09 pm #15986902

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Thank you very much. Would you please also add the Support user? As it seems to be not available.

Or if you have new login information you can share by setting the next reply as private.

Thanks.

July 22, 2024 at 1:23 pm
July 22, 2024 at 4:20 pm #15987975

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Thank you, I managed to move the website to the Cloudways server. I informed the compatibility team.

Will get back to you if I have more questions.

Thanks.

July 23, 2024 at 1:17 pm #15992546

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

The compatibility team gave a workaround as follows:


- Go to WPML > Settings and temporary switch to the Classical Editor.
- Finish the problematic translations.
- Go back to WPML > Settings and set back to ATE.
- Finish the post translation.

Thanks.

July 24, 2024 at 7:53 am #15996630

justinK-16

Hi Christopher

This has worked - even when switching back to the ATE it does not get overwritten. So all good for now.

Could you please advise/ask the 2nd Tier as to which is the correct code to leave in our functions.php

On the 9th July, you asked me to replace a line with this:
$translated_id = apply_filters('wpml_object_id', $id, $post_type, false);

It used to be:

$translated_id = apply_filters('wpml_object_id', $id, $post_type, true);

After making the change - nothing seems to change/wor or appear differently - so could you please advise which is the best/correct code?

Than you for your help.

July 24, 2024 at 11:16 am #15997915

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Please keep the latest version of the code that you have now.

Thank you.

July 24, 2024 at 6:00 pm #15999926

justinK-16

Great thank you - and thanks again for all your help with this 🙂

justinK-16 confirmed that the issue was resolved on 2024-07-24 18:01:31.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.