Assigning language to posts via API does not work

[ad_1]

According to Polylang’s documentation, it seems possible to assign a post as a different language version of another post using the following method:

POST /wp/v2/posts/3376?lang=fr&translations[en]=3374

This usually means that post 3376 is the French version of post 3374.

But in my practice, post 3376 became an isolated French post and was not linked to post 3374.

I have encountered this problem on multiple instances. Is this a bug in the plugin?

  • This topic was modified 16 minutes ago by xiaoyao.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer