Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You created and translated a menu in WordPress, but when fetching the data using GraphQL, only the English version appears.
Solution:
We recommend updating to WPML GraphQL 1.1.0, which provides enhanced support for multilingual menus. You can download the update from here.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at our support forum.

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

Last updated by Marcel 2 months, 2 weeks ago.

Assisted by: Marcel.

Author Posts
June 21, 2023 at 2:50 pm #13869727

jakubM-24

I created and translated a menu in my WordPress. However, when I fetch the data using GraphQL, I can only see the English version.

Here are the versions I am using:

WordPress: 6.2.2
Gatsby: 5.2.0
gatsby-source-graphql: 5.10.0

June 21, 2023 at 5:29 pm #13870683

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

we recently developed our own multilingual Add-On for GraphQL. Are you currently using it? Please see https://wpml.org/documentation/related-projects/wpml-graphql/.

Best Regards
Marcel

June 22, 2023 at 5:19 am #13872603

jakubM-24

Yes, I use it in my project but when I try to query menus - "language" filter is not available. I only get one record of my default english menu.

June 22, 2023 at 8:38 am #13874097

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

can you please record a screen video where the issue is viewable? We would need to see the output of your queries. Thank You1

Best Regards
Marcel

June 22, 2023 at 1:54 pm #13877877

jakubM-24

Hi, here you can find recorded screen:
hidden link

June 22, 2023 at 5:03 pm #13879819

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Thank you, I'm checking it with our developers.

Best Regards
Marcel

June 26, 2023 at 9:35 am #13893913

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

(Internal Status Change)

July 4, 2023 at 1:57 pm #13942019

jakubM-24

Hi!

Is there any update about it?

Thank you!

July 4, 2023 at 2:56 pm #13942549

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

the functionality 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.

Best Regards
Marcel

July 19, 2023 at 10:31 am #14065099

krzysztofW-4

Hi Marcel,

Do you know the expected time when the support for menus will be added?

July 19, 2023 at 11:25 am #14065683

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

I can't provide you with an ETA for this, as this depends on many factors. Currently, no other clients are asking for this feature, which means our developers handle it with a lower priority.

I will let you know here once it's available.

Best Regards
Marcel

August 8, 2023 at 9:23 am #14167885

raghavendraS-2

Hi Marcel,

We are building a website using wpgraphql. we need the menu translations can you please let me know once the feature is active.

August 21, 2023 at 7:47 am #14260405

bjarteL

Hi Marcel,

We are also build our company website using wpgraphql. And we also need this translated menu fetching feature.

Could you please send me the hidden link of 3rd party implementation of this feature?

Thanks.

August 28, 2023 at 11:35 am #14300207

andreM-22

Hi Marcel,

I am also building a new website using wpml graphql and need to support for menu items.

Could you please send me the hidden link of 3rd party implementation?

Thanks.

September 4, 2023 at 6:14 am #14333607

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

as the link is getting censored, I'm sending it without https:
github.com/rburgst/gatsby-source-wordpress-menus.

Best Regards
Marcel