Home›Support›English Support›[Resolved] Can't see translations in custom dynamic fields by Pods in Elementor
[Resolved] Can't see translations in custom dynamic fields by Pods in Elementor
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.
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
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.
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.
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!
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?
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.
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/
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
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.