Extension

Polylang

Integration with the Polylang plugin, adding fields and filters to select the language when fetching data on a multilingual site.

Logo
Target Image

Click to watch tutorial video - 02:56

Integration with the Polylang plugin (and also Polylang PRO).

When Polylang is installed in the WordPress site, fetching data using GraphQL would retrieve results for all languages. For instance, field posts might fetch posts in English, Spanish and French.

With the Polylang integration, fields get an extra argument polylangLanguagesBy, to fetch data for some specific language only:

{
  posts(
    filter: {
      polylangLanguagesBy: {
        codes: ["en"]
      }
    }
  ) {
    title
    polylangLanguage {
      code
    }
  }
 
  pages(
    filter: {
      polylangLanguagesBy: {
        locales: ["en_US"]
      }
    }
  ) {
    title
    polylangLanguage {
      locale
    }
  }
 
  customPosts(
    filter: {
      polylangLanguagesBy: {
        predefined: DEFAULT
      }
      customPostTypes: "some-cpt"
    }
  ) {
    title
    polylangLanguage {
      code
    }
  }
}

Purchase extension

Personal
$62.49
(one-off)
Polylang
License for 5 domains
Purchase ->
  • 5 domains
  • Support (forever)
  • Product updates (forever)
Organization
$124.99
(one-off)
Polylang
License for 25 domains
Purchase ->
  • 25 domains
  • Support (forever)
  • Product updates (forever)
Professional
$187.49
(one-off)
Polylang
License for 100 domains
Purchase ->
  • 100 domains
  • Support (forever)
  • Product updates (forever)

The license never expires. Prices are in USD.

30-day money back guarantee

Purchase any extension with the confidence that you can request a refund

Features illustration
Money back guarantee

Read our refund policy

Testimonial image

This plugin is next level!. It takes your site to a whole new level and turns it into a powerhouse. The more you explore what it can do, the more impressed you’ll be. If you’re on the fence—just grab it, you’ll kick yourself later if you don’t!. The documentation speaks for itself and is solid as it gets. Leo (the dev) is one of the sharpest and most switched-on developers I’ve ever come across. He’s super responsive and clearly knows his stuff. I’m honestly stoked with how much this plugin can do. The possibilities are pretty much endless, and if SEO matters to you, this thing will help your site rank hard.

olmate - Webdev

Subscribe to our newsletter

Stay in the loop on all new things concerning Gato GraphQL.