You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a site using WPML, I added a custom post type with a repeatable Plain Text field. After creating a post (of the CPT) with several values for the (repeatable) Plain Text field, and translating the post and field values, the translated post will have only one (translated) value for the Plain Text field.
After looking at the post meta / custom fields for the custom post type, it appears that the Pods repeatable field sets multiple post meta fields with the same key. (The translated post ends up with only one value for the key.) I tried manually setting custom fields (multiple values with a different key) and all of the (translated) values appear in the translated post, so it does not appear to be an issue with WPML.
At some point the "Watch WP Metadata calls" setting was enabled (I believe because I added a Relationship field to a custom post type). After disabling this setting this issue no longer exists, i.e. it appears that the post meta hook(s) that Pods is adding is somehow causing WPML to see only one field value and not all of the multiple values of the repeatable field.
Version
3.2.6 (WPML 4.6.13)
Testing Instructions
Enable "Watch WP Metadata calls" in Pods settings
Create a new Pod for a custom post type with a repeatable Plain Text field
Add a template in the active theme for the new custom post type, showing the repeatable field values
Add a post for the new custom post type, setting multiple values for the repeatable field (e.g. "A", "B", "C")
Translate the post to a different language using WPML (all three repeatable field values should be translatable in the Advanced Translation Editor)
View the translated post in the front end
The three translated field values should be shown; instead only one is displayed.
Description
On a site using WPML, I added a custom post type with a repeatable Plain Text field. After creating a post (of the CPT) with several values for the (repeatable) Plain Text field, and translating the post and field values, the translated post will have only one (translated) value for the Plain Text field.
After looking at the post meta / custom fields for the custom post type, it appears that the Pods repeatable field sets multiple post meta fields with the same key. (The translated post ends up with only one value for the key.) I tried manually setting custom fields (multiple values with a different key) and all of the (translated) values appear in the translated post, so it does not appear to be an issue with WPML.
At some point the "Watch WP Metadata calls" setting was enabled (I believe because I added a Relationship field to a custom post type). After disabling this setting this issue no longer exists, i.e. it appears that the post meta hook(s) that Pods is adding is somehow causing WPML to see only one field value and not all of the multiple values of the repeatable field.
Version
3.2.6 (WPML 4.6.13)
Testing Instructions
The three translated field values should be shown; instead only one is displayed.
Screenshots / Screencast
No response
Possible Workaround
Disable the "Watch WP Metadata calls" setting
Site Health Information
(some client-identifying information removed)
Pods Package
I have multiple Pods active and affected by this issue, this is one of the simpler ones (with the "partners" field):
The text was updated successfully, but these errors were encountered: