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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 2 replies, has 3 voices.

Last updated by Marcel 3 weeks, 5 days ago.

Assisted by: Mohamed Sayed.

Author Posts
August 7, 2023 at 1:32 pm #14164115

raduM-2

I'm using WPML with WPML GraphQL extension. I created a menu and I translated it via the "Appearence > Menu" interface.

When I try to see the translated menu via the GraphQL IDE, I can't find any options relative to the language like I have with others post types (for exemple 'language' or 'languageCode').

Currently when I query all the menus, I only get the french one which is the default language of my website.

I would like to be able to do a query like this to get all the menus in any language :

query Menu {
  menus(where: {language: "all"}) {
    nodes {
      languageCode
      menuItems {
        nodes {
          uri
          label
        }
      }
    }
  }
}
20230807152529.png
20230807151213.png
20230807151415.png
20230807151433.png
August 7, 2023 at 6:58 pm #14166001

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

Unfortunately, the menus are not yet supported by the WPML GraphQL plugin.

This was already escalated to our developers as a feature request, but we don't have any ETA as it's still under discussion. I will include your ticket there.

At the moment, you can check the following plugin: hidden link

Kindly note that this is a 3rd party implementation not created by our developers, so it's not tested by our team.

Kind regards,
Mohamed

September 3, 2024 at 2:52 pm #16136405

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

we release WPML GraphQL 1.1.0 last week: https://wpml.org/compatibility/2024/08/wpml-graphql-1-1-0-multilingual-support-for-menus-and-enhanced-post-queries/.

Best Regards,
Marcel