Saturday, 14 September 2013

Use original post meta values on WPML translation

Use original post meta values on WPML translation

I am building a WordPress plugin, and I like to integrade it with WPML.
What I like to do is the following:
I have registered a custom post type for my plugin, that using post meta,
in order to create an image gallery for each post. The post meta, is an
array with the used pictures ID's and looks like the following:
Array
(
[0] => 124
[1] => 127
[2] => 128
)
So, the question is, how can I use this post meta values when I translate
the original post to some language ?
Lets see it step by step:
The user creates the post in English language, and then adding some
pictures for this post in the post meta.
Then the user click on blue cross symbol, under the panel "Language" to
translate this post into Russians.
How the images from the original post can be placed in this new
translation by default ? Is there a way ?
Kind regards

No comments:

Post a Comment