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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Bobby 5 months, 4 weeks ago.

Assisted by: Bobby.

Author Posts
April 3, 2024 at 2:21 pm #15478967

Mateusz Gawlik

Hey,
I am not able to fetch the menus in other languages than the default in WP.

WP: 6.5
WP GraphQL: 1.22.1
WPML GraphQL: 1.0.0

April 3, 2024 at 6:47 pm #15480127

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Please share with me the query you are using to fetch the menu

In the meantime, I also recommend reviewing our Documentation here:
https://wpml.org/documentation/related-projects/wpml-graphql/

April 4, 2024 at 9:08 am #15481768

Mateusz Gawlik

Hey Bobby,
I am just trying to fetch all the menus:
{
menus {
edges {
node {
slug
name
}
}
}
}

it outputs just the US menus (default).

I also tried to fetch the particular menu from the other language (I know the ID), like this:

{
menu(id: 78, idType: DATABASE_ID) {
name
slug
}
}

but it returns null (US works fine).

The query composer for the "menus" is also missing the language/translations field.

April 4, 2024 at 7:33 pm #15485633

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the above information!

I was able to locate an open ticket from our team regarding this issue.

Please find the feedback from our team regarding this issue.

"The functionality does not exist yet for menus, so this is handled as a feature request. Our team will evaluate the integration of the menu in our Add-on.

Meanwhile, you might want to check out 3rd party implementation not from our company, like hidden link."

At the moment this is marked as a to-do feature for our team but I cannot yet share an ETA.

The topic ‘[Closed] [WPML GraphQL] Localized menus no longer accessible’ is closed to new replies.