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.

Our next available supporter will start replying to tickets in about 1.36 hours from now. Thank you for your understanding.

This topic contains 25 replies, has 2 voices.

Last updated by Bigul 2 months, 3 weeks ago.

Assigned support staff: Bigul.

Author Posts
June 24, 2019 at 4:26 pm #4078611

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the updates. Please check the following image. When we are creating an ad from Burmese, the post should be like this. It must show *Burmese* as the *Language of this ad* post.

hidden link

But now instead of setting the Burmese as post language, it is set as the duplication of itself. Please check this image - hidden link

--
Thanks!

Bigul

June 24, 2019 at 7:01 pm #4079291

hlaingM

Hi, Thank you for an explanation. What are the consequences of not having the original? Thanks.

June 25, 2019 at 4:53 am #4081291

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

This may make issues in Ad Posts listing, proper sync to related posts and taxonomies, switching between the translations etc..

--
Thanks!

Bigul

June 26, 2019 at 4:50 am #4088891

hlaingM

Hi,

Thank you for your explanation. I am having my freelance developer to fix that, and we will see if that fixes our issues. Is the "slugs" of different items for the default English and the 2nd language supposed to be the same or different?

Thanks.

June 26, 2019 at 9:13 am #4090781

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the updates. It will be fine to have the same slug for a post and its translation. This will not be an issue. While duplicating a Post we will have the same slug for the post in both languages.

--
Thanks!

Bigul

June 26, 2019 at 9:25 am #4090873

hlaingM

Hi,

Thank for an explanation. Is the codes shown with the link all the coder would need to accomplish the task? Is there any other resources/codes?

My separate question is: Does duplicating the posts with WPML consume more (twice as much) storage space on server? I set the setting (fall back to default if not translated). My concern is that if there are hundreds of thousands of posts, that would be a great concern and consideration. Thank you.

June 26, 2019 at 4:54 pm #4094177

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the updates. Now there are two WPML API to duplicate the posts. Please check the following link for more details.

https://wpml.org/wpml-hook/wpml_make_post_duplicates/

https://wpml.org/wpml-hook/wpml_admin_make_post_duplicates/

Duplicating post will make extra entries in the database like the translation. So the database requires more space(in the case of thousands of posts). But normally it will not be a huge size. If you only want to display the default language post, *Translatable - use translation if available or fallback to default language* will be a good choice. So you can avoid the duplication from the default language.

--
Thanks!

Bigul

June 26, 2019 at 8:07 pm #4094999

hlaingM

Hi,

Thank you very much for your additional info. Right now, the same thing is happening with the (woocommerce) product. One of my plugins makes the ads into woocommerce products which are NOT copied to another language.

For duplicating the products, do you have similiar (codes) information/link(s)? Thank you,

June 27, 2019 at 6:08 am #4096851

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the updates. You have to use the same APIs for duplicating the WooCommerce Product Posts. While using *wpml_admin_make_post_duplicates* API we can change the Post Type. Please check the sample code.

https://wpml.org/wpml-hook/wpml_admin_make_post_duplicates/

https://wpml.org/wpml-hook/wpml_make_post_duplicates/

--
Thanks!

Bigul

June 27, 2019 at 8:50 am #4098069

hlaingM

Hi,

Thank you for an update. Just for clarification, You am now sending me the same links you sent earlier. (or) you meant the same links can be used for duplicating the product?

Thank you.

June 27, 2019 at 12:19 pm #4099979

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the updates. The links are the same. We can use the same APIs to duplicate any Post Types Posts. Like Posts, Product Posts, Ad Posts etc..

https://wpml.org/wpml-hook/wpml_admin_make_post_duplicates/

https://wpml.org/wpml-hook/wpml_make_post_duplicates/

--
Thanks!

Bigul