Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create static pages based on WPML translation #6961

Closed
jarekpelczynski opened this issue Aug 2, 2018 · 4 comments
Closed

Create static pages based on WPML translation #6961

jarekpelczynski opened this issue Aug 2, 2018 · 4 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more.

Comments

@jarekpelczynski
Copy link

jarekpelczynski commented Aug 2, 2018

I want to create pages structure based on translation on WPML.
For example, I want to create a static page /about for default languages and/:lang/about for other languages.

Every page has wpml_translations with the ID of the translated page, but how can I get these pages (by ID) and add to the nodes?

I would be grateful if you could help me :)


UPDATE:
I've figured out, that gatsby-source-wordpress doesn't fetch translations which I need it. I think I could add option to plugin (e.g. { translation: ['de', 'fr', ...] }) and extend it in order to fetch translations.

@Chuloo Chuloo added the type: question or discussion Issue discussing or asking a question about Gatsby label Aug 2, 2018
@KyleAMathews
Copy link
Contributor

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

@ghost
Copy link

ghost commented Jan 27, 2019

There is a PR for adding custom routes. This includes fetching full WPML translations.

Hope this get merged soon.

@ghost ghost reopened this Jan 27, 2019
@ghost ghost added type: feature or enhancement and removed type: question or discussion Issue discussing or asking a question about Gatsby labels Jan 27, 2019
@gatsbot
Copy link

gatsbot bot commented Feb 18, 2019

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 💪💜

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Feb 18, 2019
@gatsbot
Copy link

gatsbot bot commented Mar 1, 2019

Hey again!

It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.

Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Gatsby community!

@gatsbot gatsbot bot closed this as completed Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more.
Projects
None yet
Development

No branches or pull requests

3 participants