This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is developing a site and trying to translate several pods with various fields using WPML. They can only translate text fields and the WYSIWYG editor field, but not checkboxes or other fields. Despite setting fields as "translatable" or "copy once", checkboxes and option fields are not showing on the translated product page.
Solution:
1) Ensure that the fields are not set as COPY in WPML > Settings > Custom Fields Translation. WPML needs stored data for the custom field to detect it.
2) There are known limitations with translating PODS checkboxes and option field labels and values. Our compatibility team is working on a workaround.
3) For immediate relief, follow these steps:
- Visit WPML > Settings > Post Types Translation and set *Translatable - only show translated items* for Pod Templates, Pods, Pod Groups, and Pod Fields.
- In WPML > Settings > Custom Fields Translation, set *Don't translate* for fields like _pods_application_method, _pods_curing, and _pods_standards_complied_with.
- Set *Translate* for fields like application_method, curing, and standards_complied_with.
- Add the following code in the
template-parts/content/content-single.php
file:
<div align='center'> <?php echo "<br />".pods_field_display( 'application_method' ); ?> <?php echo "<br />".pods_field_display( 'curing' ); ?> <?php echo "<br />".pods_field_display( 'standards_complied_with' ); ?> </div>
4) Update the post in the original language and its translation.
If this solution does not resolve your issue or seems outdated, we recommend checking 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. If the problem persists, please open a new support ticket 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: Bug
Author | Posts |
---|---|
October 31, 2024 at 3:40 am #16349502 | |
philippF-8 |
Background of the issue: Symptoms: Questions: |
October 31, 2024 at 7:39 am #16349854 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, Thanks for contacting us. While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly. 1) In order to expedite handling your support requests, can you please share WPML support debug information from your site. - To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page. - Once on the “debug information” page, select the entire content of the text box and copy it. - Now go back to our support forum, find debug information box and paste it. More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/ 2) It is most likely that they are set as COPY, and not meant to be translated. Go to WPML > Settings > Custom Fields Translation to double-check the settings for your custom fields. (Note, WPML will only find the fields to offer settings where there is stored data for the custom field. It's not enough just to register a custom field in Pods, you must also save some content so that WPML can detect the field from the entries in wp_postmeta.) Let us know how it goes. Regards, |
November 1, 2024 at 2:20 am #16353627 | |
philippF-8 |
Hi Drazen, |
November 1, 2024 at 5:14 pm #16355683 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the updates. Please fill in the private details fields after a full site backup{mandatory}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies. hidden link -- Bigul |
November 4, 2024 at 4:41 pm #16362498 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the details and login information. We will test it further. Please allow me to make a copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging the issue on our local server (in case of escalation). -- Bigul |
November 5, 2024 at 3:21 am #16363925 | |
philippF-8 |
Thank you, sure go ahead with the copy as needed. |
November 6, 2024 at 2:03 pm #16372432 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the permission. I made a copy of the site and testing it now and will get back to you soon. Please wait. -- Bigul |
November 8, 2024 at 9:40 am #16381329 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, This looks like a compatibility issue. So I am consulting with our team for an expert opinion. We will get back to you as soon as possible. Please wait. -- Bigul |
November 13, 2024 at 3:32 am #16395287 | |
philippF-8 |
Thank you, I'm still very much interested in a solution. This is a commercial project and WPML claims compatibility with Pods. |
November 13, 2024 at 6:20 pm #16399095 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, We are still working on this issue. As a part of our debugging procedures, I have tried to reproduce the issue in a fresh installation on our sandbox server. Because it may be a compatibility issue. We are getting the expected results in my local copy and sandbox server after the following steps. 1) Visit WPML>>Settings>>Custom Fields Translation Please check the following links and attached images for more details and let us know your feedback. Sandbox Login URL - hidden link hidden link hidden link -- Bigul |
November 14, 2024 at 4:15 am #16400591 | |
philippF-8 |
Hi Bigul, not sure how that solves the issue. As I've written on Nov. 1st, I've also experienced the fields show up in ATE but the thusly translated fields are not picked up in the loop element or in a normal post. As WPML states that PODS is only compatible when using the WP Editor my thought was that we can't use ATE at all. Yes, we can translate the fields in ATE but they are not working in the template, please see screenshot for clarification. That the fields show up in your sandbox (and in my install) doesn't mean they can be used. Best, New threads created by Bigul and linked to this one are listed below: https://wpml.org/forums/topic/posts-translated-to-german-shows-fatal-error/ |
November 14, 2024 at 7:29 am #16400852 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hi Philipp, Thank you for the detailed confirmation. I have shared it with our compatibility team. We will get back to you as early as possible. Please wait. -- Bigul |
November 22, 2024 at 4:35 am #16431784 | |
philippF-8 |
Dear WPML team, still no result after 3 weeks. Please support this topic, as I've seen from the In general I would like your feedback on the WPML statement that WPML is compatible with PODS and can be used but only with manual translation. As you can see from the screenshot, only the WPML ATE manages to translate the fields (but they are not shown), the WP standard editor doesn't offer translation of these fields. Please give me an update. Best, |
November 22, 2024 at 6:14 pm #16435007 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hi Philipp, Sorry for the delayed response. Currently, there are limitations in translating the PODS checkboxes and option field labels and values. Our compatibility team is actively working on finding a possible workaround for this issue. We will get back to you as soon as possible. Thank you for your understanding and patience. -- Bigul |
November 28, 2024 at 3:57 pm #16456204 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hi Philipp, Sorry for the delay. We are getting the expected results on the sandbox site after the following steps. 1) Vist WPML>>Settins>>Post Types Translation <div align='center'> <?php echo "<br/>".pods_field_display( 'application_method' ); ?> <?php echo "<br/>".pods_field_display( 'curing' ); ?> <?php echo "<br/>".pods_field_display( 'standards_complied_with' ); ?> </div> 6) Update the post in the original language Please check the following links and attached images for more details and let us know your feedback. Sandbox site login URL:- hidden link Post URLs:- hidden link hidden link -- Bigul |