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.

This topic contains 1 reply, has 2 voices.

Last updated by Andreas W. 9 months ago.

Author Posts
August 24, 2024 at 8:52 pm #16100651

Kirill

Background of the issue:
I have custom taxonomy using Toolset plugin and one item with translations. The URLs for the items are hidden link and hidden link. I want to find the connection between them (different translations of one item) via API.

Symptoms:
No documentation found on the topic.

Questions:
How to get a connection between translations of custom taxonomy via API?

August 24, 2024 at 9:30 pm #16100674

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Sadly WPML does not yet fully support the WordPress REST API, but you are able to use a language parameter, if you need to check for content created in a second language.

Example for English Posts:
hidden link

There is no connection between original content and translation inside the REST API.

With WPML each translation has its own ID. The following hook allows you to the ID of a content in the current language or in another language defined as argument:

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

We further do support a few features for the WooCommerce REST API:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/

Best regards
Andreas

The topic ‘[Closed] How to get a connection between translations of custome taxonomy via API’ is closed to new replies.