Перейти к содержимому Перейти к боковой панели
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 голос.

Последнее обновление: tobiasA-22 1 год, 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?' закрыта для новых ответов.