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 3 replies, has 3 voices.

Last updated by Dražen 1 year, 9 months ago.

Assisted by: Dražen.

Author Posts
September 11, 2023 at 5:30 am #14372695

tkkI

I need to use REST API

September 11, 2023 at 5:40 am #14372711

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Here is the ticket, let us know how can we help or what do you need when it comes to REST API and what doesn't work with directories but would work with parameters.

September 11, 2023 at 1:33 pm #14376751

tkkI

Hi, for example this URL:
hidden link

When I format URL using directory the REST API don't work the work is not translated.

Screenshot 2566-09-11 at 20.32.22.png
September 12, 2023 at 7:52 am #14381015

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

that is expected as you cannot use the lang parameter in the URL.

You are also using the default product ID in the URL, so it is expected to return that product information. You need to use the TH product ID and you should be able to get the correct TH info.

Regards,
Drazen