Skip Navigation

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

Problem:
You are trying to copy custom fields created by Pods to translations for a custom post type. Despite setting the custom fields as 'Copy' and Pod Groups as 'Not translatable', the fields are not being copied to translations. Additionally, there is an error when accessing the translated post type where the link to the pdf attachment is used.
Solution:
First, ensure that the WPML settings for custom post types are set as 'not translatable'. If you previously set these fields as 'translatable', you need to delete all created custom fields and their groups, then recreate them with the correct WPML settings before they are created. This approach was confirmed to resolve the issue when tested. Also, check if the video URL field has been copied correctly by accessing your posts and custom post type settings in WPML.

If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. Additionally, it's advisable to check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML support forum.

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.

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Osama Mersal 4 months ago.

Assisted by: Osama Mersal.

Author Posts
September 12, 2024 at 9:50 am

kristianT-10

Background of the issue:
I want to copy custom fields created by Pods to translations. I have a custom field 'pdf_attachment' with type File/Image/Video for a custom post type and a second field 'video_url' of type Website. The settings for custom fields are set as 'Copy'. I also set Pod Groups as Not translatable as recommended.

Symptoms:
Fields are not copied to translations and there is an error when trying to reach the translated post type where the link to the pdf attachment is used: hidden link hidden link

Questions:
Why are custom fields created by Pods not being copied to translations?
How can I resolve the error when trying to reach the translated post type with the pdf attachment link?

September 12, 2024 at 10:21 am
September 12, 2024 at 10:31 am #16170236

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please log in to this sandbox site and install the Pods. (hidden link)

After that, please create two test fields and assign them to the posts to replicate the issue.

If the issue is replicable, please let me know to consult our compatibility team.

Best regards,
Osama

September 12, 2024 at 10:57 am #16170352

kristianT-10

The issue is duplicated:
hidden link

Please see the settings of WPML, if there is something I should set differently
thank you

September 12, 2024 at 11:32 am #16170475

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I checked the issue, and the video URL seems to have been copied correctly. Kindly check the following:

1) Posts: hidden link

2) Custom Post Type: hidden link

Best regards,
Osama

2024-09-12_14-32-02.png
September 12, 2024 at 11:57 am #16170734

kristianT-10

Hello,
but if you try to open the post, you get critical error

hidden link
hidden link

September 12, 2024 at 12:03 pm #16170756

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

This error is unrelated to WPML because it persists even when WPML is deactivated. Please check this post. (hidden link)

Note: All WPML plugins are deactivated on the sandbox site.

Best regards,
Osama

September 12, 2024 at 1:43 pm #16171393

kristianT-10

Hello,

the error was there, because you deleted fields that I created and elementor template wasn't updated with your new ones. After update, page was loaded correctly.

I figured out where was the problem, WPML Settings for custom post types need to be set as not translatable. But it wasn't enough to change these settings and delete posts, I had to delete all created custom fields with groups and create new ones, where the WPML settings were set as mentioned before field were created. Once set as "translatable", it seems there is no way back to change those settings if error occures.

It worked for you, because you changed settings I replicated and then deleted fields and created new ones.

September 12, 2024 at 1:48 pm #16171466

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. It's great to hear that the issue is fixed. 🙂

Please let me know if you need further assistance translating the Pods fields.

Best regards,
Osama