WPML copy to relationship field #6595
Replies: 20 comments 1 reply
-
@DovWebmark Can you please provide more detail? When you brought this to our Slack Support, you provided more information and we need that logged here as well in order to replicate the problem:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
I have a pod with a relationship field to another pod, and it is a required field. |
Beta Was this translation helpful? Give feedback.
-
Do you have a 'default value' set for the field? The 'required setting' for the relationship sounds like it's conflicting or it's a timing issue for the point when the copy to WPML takes place. @JoryHogeveen Do you have much experience with the WPML configurations? I don't think PolyLang exhibits this particular problem. |
Beta Was this translation helpful? Give feedback.
-
No default value |
Beta Was this translation helpful? Give feedback.
-
@srdjan-jcc Also mentioning you on this one to see if this is behavior you've seen in your testing. |
Beta Was this translation helpful? Give feedback.
-
I believe this is because the meta sync/copy feature doesn't translate the post ID's. So the translated posts will get ID's from an untranslated post, and these get filtered out once use try to edit or view a post. @jimtrue Polylang has the exact same problem and this is not something Polylang or WPML should fix. These plugins don't know the context of a meta value so it could just be a numeric value. A plugin I wrote for Polylang: https://github.com/JoryHogeveen/pods-polylang-sync-meta (check the |
Beta Was this translation helpful? Give feedback.
-
@JoryHogeveen Does this mean our relationship field connections don't currently translate when you translate a post? I think I follow the issue from your description above, but I think we need @sc0ttkclark 's feedback in here on the best way to handle, especially with the changes being planned in 2.8 Also, is there currently a workaround for this condition? |
Beta Was this translation helpful? Give feedback.
-
Nope they don't since translating in theory is just adding a new post. There is no actual workaround for this. |
Beta Was this translation helpful? Give feedback.
-
@JoryHogeveen #3774 says it's invalid because it was caused by a synchronizations setting from PolyLang. Is this not the case for that one? |
Beta Was this translation helpful? Give feedback.
-
That issue is not relationship related but just plain text. So meta sync wouldn't be a adviced setting. |
Beta Was this translation helpful? Give feedback.
-
Same issue (sync meta fields): #2006 |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue (wpml not synching relationships for different languages). Is there any chance this might be resolved in the future? Is there a workaround? It would be a shame not to be able to use relationships on a two-language page. |
Beta Was this translation helpful? Give feedback.
-
Hi @nillde |
Beta Was this translation helpful? Give feedback.
-
How is this going? I'm having the same problem. :) |
Beta Was this translation helpful? Give feedback.
-
Update on this issue. In short, this issue is in our pipeline for Pods addons. |
Beta Was this translation helpful? Give feedback.
-
You can´t believe how much I am waiting for this to work! :) I am struggling for weeks... |
Beta Was this translation helpful? Give feedback.
-
If anyone comes by here, unchecking the WPML setting/checkbox "Adjust IDs for multilingual functionality" was the solution for me! @nillde @nikolinenielsen @DovWebmark Found it in this thread: |
Beta Was this translation helpful? Give feedback.
-
Sadly that evidently doesn't work for all scenarios. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, In 2023 with the latest versions of Pods and WPML I still have this issue. I created a Custom Post Type and a relationship with Media files, I use the API to fetch the data on a mobile application and I need the translation_id / trid fields. In previous versions of Pods these fields where included in the API response but since a couple of updates not anymore.. |
Beta Was this translation helpful? Give feedback.
-
If I set WPML to copy fields when duplicating a post, it will not copy any field which is a relationship. Even if I manually add the row to wp_podsrel, it will not load it in the copied page, and will mark the field as being empty.
Beta Was this translation helpful? Give feedback.
All reactions