Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 773 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 773 Bytes

Generation multilingual blog archive page with seperate blog post templates

  • Install Polylang plugin on your wordpress site.

  • Add polylang parameters to your graphQL with wp-graphql-polylang plugin.

    https://github.com/valu-digital/wp-graphql-polylang

  • Update gatsby-source-wordpress plugin settings in gatsby-config.js with your wordpress url where you setup polylang plugin.

  • Update gatsby-node.js and template files name based on your language selections.

    • In my code the default template is english and additional template is turkish.
  • Enjoy. ✨

Check my medium post for step-by-step explanation. 👇

https://medium.com/@sedanuryildiz/building-a-multilingual-blog-with-headless-wordpress-gatsby-66a4031a1ce5