Skip Navigation

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Dražen Duvnjak 1 year, 6 months ago.

Author Posts
November 10, 2022 at 3:17 pm #12431951

wpmluser78694856

We are trying to make WPML to sync product titles from Danish -> English. So when we change the Danish product title, it will also change the English product title.

We've looked at the developer docs, searched Google till we almost got blocked, and can't seem to find a solution.

Is there any way to make WPML always use ie. the Danish product title to the English translation? Even if it gets updated? (The product titles are alwasy the same in DA and EN).

Thank you so much for your help. 🙂

(ps. the memoery limit is increased now)

November 11, 2022 at 7:06 am #12436397

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

I am afraid I think there is no such option from WPML out of the box since titles should be translated in all cases.

What I suggest here is to try to find a solution that works for WordPress in general without WPML, copies the title from one post to another, and then you can adjust this code to WPML, and use hooks like wpml_object_id to get translated post ID.

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

Or another way would be adding a custom field that is set to COPY, so it would be the same in both languages. Then creating code that will adjust the title, and copy text from the custom field to the post title.

Example:
- https://wordpress.stackexchange.com/questions/230900/copy-custom-field-value-to-post-title

If you need help with custom coding you can contact WPML contractors:
- https://wpml.org/contractors/

Hope I was helpful.

Thanks,
Drazen

The topic ‘[Closed] Sync woocommerce product titles’ is closed to new replies.