Skip Navigation

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

Problem:
The client was unable to see translated custom fields in a custom post type created with Pods when using Elementor Pro. The custom fields were visible and could be edited in the main language, but they did not appear as dynamic fields in Elementor widgets on the translated pages.
Solution:
First, we recommended checking if the custom fields were set to be translatable or copied to the secondary language using our guide: Translating Custom Fields.
Then, our 2nd tier specialists provided a workaround:
1. Create a full backup of the site.
2. Navigate to WPML -> Settings -> Post types translation and set the pods post types:

_pods_pod

,

_pods_group

,

_pods_field

to "Don't translate".
3. Execute SQL queries to remove specific entries from the database in the provided sequence.
4. Re-save the main pod.
5. Visit the translated custom post type page to confirm if the issue was resolved.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket for further assistance 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.

This topic contains 11 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 3 months ago.

Assisted by: Carlos Rojas.

Author Posts
February 20, 2024 at 1:30 pm #15323039

Sergei Skvortsov

I am trying to: Translate custom fields in a custom post type created with Pods. I am using Elementor Pro to create a template for custom post type with custom fields. For the main language Elementor does see the custom fields and displays them in the list of dynamic fields. However in the second language I can see that custom fields are translated, but the Elementor widgets do not "see" these custom fields as dynamic fields, and don't output them on a translated page.

Link to a page where the issue can be seen: hidden link as opposed to hidden link where price and some other fields are custom fields by Pods

I expected to see: custom fields translated

Instead, I got: I don't see custom fields at all

February 21, 2024 at 10:29 am #15326906

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

Please use this guide to check if the custom fields are set to be translatable or copied into the secondary: https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

Regards,
Carlos

February 21, 2024 at 11:00 am #15327094

Sergei Skvortsov

Hi Carlos, Thanks for getting back to me. Yes, the fields are set to be translatable, and as I mentioned in my ticket - I see that they are translated (automated translation is on). I can edit translations of custom fields in the translation editor. But I cannot display them on the front end.
I use Elementor Pro, which allows inserting dynamic fields - and I insert custom fields on pages in the main language. But I don't see custom fields in the Elementor widgets in translated pages. Custom taxonomies are there, but the custom fields are not.

Screenshot 2024-02-21 at 11.58.05.png
Screenshot 2024-02-21 at 11.54.30.png
Screenshot 2024-02-21 at 11.53.51.png
custom-fields.jpg
February 21, 2024 at 11:21 am #15327368

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,
Thank you very much for your message and the attached images.

1.- Please share the URL or the steps to edit the template in the original language

2.- I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to back up the site before providing us access. If we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

February 22, 2024 at 10:02 am #15332418

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you for sharing the requested credentials.

1.- Please answer the first point in my previous question

2.- I kindly ask you to update all the outdated plugins that appear in this link: hidden link

February 23, 2024 at 7:53 am #15336223

Sergei Skvortsov

Here is how we edit the original, German version template for custom post type "Tests" - hidden link
We cannot do the same in the English version.
Had to wait till late evening to update the website, as we have visitors coming to the website during the daytime. Thanks!

February 23, 2024 at 11:57 am #15337439

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you for sharing this information.

I suspect this might be a compatibility issue. Could you create a staging site with a copy of the live site where we can run tests without affecting the production site?

February 23, 2024 at 2:09 pm #15338186

Sergei Skvortsov

Here is the staging URL - hidden link - same credentials
And the ftp folder is 191142_kopie_der_box_new_probatix_health

February 26, 2024 at 10:07 am #15343369

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,
Thank you for creating the staging site

I ran several tests but the issue persists. I then created a copy of the site using Duplicator and escalated this ticket to our 2nd tier of support so our specialists could take a deeper look at the issue.

I will get back to you to as soon as I get an answer from them.

February 27, 2024 at 9:48 am #15348159

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Our 2nd tier specialists found a workaround. Please follow these steps:
- Create a full backup of the site
- Go to WPML -> Settings -> Post types translation -> Set the pods post types: _pods_pod, _pods_group, _pods_field to "Don't translate"
- Remove the entries from the DB in this exact sequence:

DELETE
FROM `wp_bobmusgafe_postmeta`
WHERE `post_id` IN (SELECT `element_id`
FROM `wp_bobmusgafe_icl_translations`
WHERE `element_type` LIKE '%post__pod%' AND `source_language_code` IS NOT NULL)

DELETE
FROM `wp_bobmusgafe_posts`
WHERE `ID` IN (SELECT `element_id`
FROM `wp_bobmusgafe_icl_translations`
WHERE `element_type` LIKE '%post__pod%' AND `source_language_code` IS NOT NULL)

DELETE 
FROM `wp_bobmusgafe_icl_translations`
WHERE `element_type` LIKE '%post__pod%' 

- Re-save the main pod: /wp-admin/admin.php?page=pods&action=edit&id=19
- Visit the CPT translation: e.g. /en/test/sport-and-fitness/

Can you confirm that the issue was solved?

February 28, 2024 at 8:03 am #15352087

Sergei Skvortsov

Hi, Thanks! This seems to work!

February 28, 2024 at 8:53 am #15352542

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos