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.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| - | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
| - | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
Tagged: Exception
This topic contains 11 replies, has 2 voices.
Last updated by Andreas W. 1 year, 10 months ago.
Assisted by: Andreas W..
| Author | Posts |
|---|---|
| May 18, 2024 at 6:35 am #15641374 | |
|
Angeloca |
Hi, In the secondary language, it returns untranslated IDs so I have to manually run them thru the `wpml_object_id`to retrieve the correct ones. |
| May 18, 2024 at 12:23 pm #15641787 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Could it be that the post type that you are using for the Post Obejct is set to "Translatable If so, then this behavior is expected. It can be avoided by using the setting "Translatable Best regards |
| May 20, 2024 at 10:33 am #15644976 | |
|
Angeloca |
Hi Andreas, |
| May 21, 2024 at 1:50 pm #15651113 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further. You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it. IMPORTANT I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further. However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose. If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again. If you are unable to provide such a copy of the site for testing, please let me know on this ticket. The private response form looks like this: Next time you reply, click "I still need assistance." Video: Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form. Best regards |
| May 24, 2024 at 9:57 am #15666887 | |
|
Angeloca |
Hi Andreas, I'll setup a staging enviroment with base theme / plugins so you can test it directly. |
| May 24, 2024 at 5:08 pm #15668692 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you for your cooperation! The private reply form is enabled again so that you can provide me access to the staging. |
| June 4, 2024 at 9:50 am #15700905 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
My apologies for the delay in answering, as Sundays and Mondays are my non-working days. Your field group is using the Expert mode translation setting. I am not able to edit the Repeater Field, as the ACF PRO version is not enabled. Please enable ACF and replicate the issue. Take note that: If you use the WPML Translation Editor for translating the fields, then you need to set the Repeater Field to "Copy". If you use the WordPress Editor to translate the fields, then the Repeater Field should be set to "Copy Once". The posts further need to be translated, too. |
| June 5, 2024 at 9:45 am #15706009 | |
|
Angeloca |
Hi Andreas, I've activated ACF license. I'm using ATE, and fields are set to copy. The post were already translated and |
| June 5, 2024 at 2:55 pm #15707752 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
If you are using the ID as the return value for this field, then this might be expected that the same ID is "Copied" - you might need to translate the ID in this case. Please use the post object as the return value. Also, take note that I updated ACF PRO and our plugins on your site and it appears to work as expected now: |
| June 7, 2024 at 10:27 am #15714815 | |
|
Angeloca |
Ok thanks, so the return of the object is kind of "mandatory" to have an automatic translation, correct? |
| June 8, 2024 at 2:22 pm #15718354 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Yes, in this case, currently any translation would only work as expected if you use the Post Object as the return value. I will try to replicate the issue on a new test site and escalate it internally so that the developers of ACFML will have a closer look into this. |
| June 8, 2024 at 11:17 pm #15718694 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Could you please have a look at my test site? One-Click-Login: I have set up a field group that is supposed to display posts on all pages. On this site, WPML currently is not yet enabled. The issue I am having is, that if I return the post object as ID, the field is returning NULL. Did I miss something in my setup, or might this be a bug in ACF? |
The topic ‘[Closed] Post object acf field in repeater retrieving original language IDs’ is closed to new replies.