跳过导航
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

支持者时区: Europe/Zagreb (GMT+01:00)

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 felixS-23 1 years, 10 months前 更新。

协助者:: Bruno Kos.

作者 文章
21 3 月, 2023 于 8:06 上午 #13290585

felixS-23

Im wondering if it is possible to connect two post as a translation via a hook or somehow in the functions.php -> background: im getting my post from an external system and creating them. For all the post of my second language im using the action "wpml_set_element_language_details" for moving them to my second language. But the problem is now that they are not connected as a translation with my first langauge. So i can not use the language switcher in the frontend. So somehow i would need to connect the two post ids as a translation in my custom code, is there any possible way?

主题 '[關閉] if it is possible to connect two post as a translation via a hook or somehow in the functions.php' 已关闭,不再接受新回复。