تخطي إلى المحتوى تخطي إلى الشريط الجانبي
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

المنطقة الزمنية للداعم: Asia/Singapore (GMT+08:00)

يحتوي هذا الموضوع 0 ردود ، لديه 1 voices.

آخر تحديث بواسطة tobiasA-22 قبل 1 سنة.

يساعده: Kor.

الكاتب المشاركات
ديسمبر 23, 2024 في 3:07 م #16540818

tobiasA-22

Background of the issue:
I use the WordPress REST API to create and update posts. For new posts, I refer to https://developer.wordpress.org/rest-api/reference/posts/#create-a-post and to update posts, I use https://developer.wordpress.org/rest-api/reference/posts/#update-a-post. Everything is working fine. I can create a German post and an English post and update both posts via the REST API.

Symptoms:
The only thing that is missing is how to connect both languages together via the API. It's like using the WPML option + to add another language post. I find no property in the API result that includes the post ID from the other post.

Questions:
How can I connect two languages via the WordPress REST API? If I do the connection manually, I don't find a property in the API result that includes the post ID from the other post.

الموضوع ”[مغلق] How to connect two languages via the WordPress REST API?“ مغلق للردود الجديدة.