I’ve created a workflow that connects to my Wordpress site via WP’s API rest, retrieves all the published pages from my site and translates them with Deepl, then creates the new translated pages on Wordpress and finally associates all the translations with each other. The workflow manages Wordpress pagination, as we’re limited to 100 pages per request on WP, even though I only have 34 pages here.
In my current workflow, I’ve defined 4 languages for translations. The workflow works, but only because the translation is done on a single page.
I have 34 pages that I’d like to translate automatically. But I don’t understand why it doesn’t work. Where did I go wrong? I think the problem is in nodes 4 and 5.
So the workflow works, but only translates one page, even though I’ve set dynamic elements.
I need your help. ChatGPT and Claude haven’t been able to help me.
When using the Loop over Items node, you need to connect your last node in the loop back to the loop node - similar to what you did with the code node.
Thanks for answer but I don’t understand. If you show the workflow, I already use nodes for the pagination. I try to add what you said but because I don’t know what to do. I have to remove some nodes after adding your parameters ? How iterate it with the loop element ?
Thanks for your answer but I try this many time and that didn’t work. Bellow the link video who I record my laptop screen to see the workflow execution. You can see that different items are send beetween nodes.
Here a streenshot that show the resultat after executing the workflow
Ah you didn’t have that bottom connector in your original workflow Loops within loops are always a bit tricky. My first impression is that the last node should loop back to your second loop node. Then, connect the ‘done’ output from the second loop node back to the first loop node.
For those who want to help me live, I’ve created an online n8n test instance and a dedicated wordpress site. Here are the login details so you can log in and see my workflow directly and test it. It’ll be easier, I think.
Test n8n login:
Email and login: [email protected]
Password: Loki88EER-Rd52
Test wordpress login:
Login: n8n-support
Password: ThisL-opera0057
Don’t worry about security, these are test environment sites.