Solving the WordPress Post Image Update Issue on Make.com
Hey there, fellow Make.com users! Have you ever encountered a peculiar issue while creating a new post on WordPress? You know, the one where you get an image from an Unsplash module, and it works perfectly fine for the first post. But then, when you create a second post, both the first and second posts get updated with the image from the second post. Sounds familiar? Well, you're not alone. Let's dive into this problem and see how we can solve it.
The Problem
When you create a post on WordPress and get an image from an Unsplash module, the module works as expected. It creates the post with the image and the correct prompt, posting it on the website. However, if Article 1 gets Image A, when you run the scenario for Article 2, both Article 1 and 2 get updated with Image B, and so on. So, while the redaction and creation of the articles work, the featured media from the last article gets updated on all the previously written articles.
The Solution
The issue seems to stem from the HTTP module, which always outputs the files from Unsplash.com, naming it 'filename.jpeg'. To solve this, you can change your approach and drop it on a cloud drive where you can rename it using the scenario 'execution ID' as the new File.name.
Troubleshooting Tips
If you're still facing issues, make sure to check the filename that you're getting from 'Get a File'. If the filename is always 'file.extension', it might be updating the existing file instead of creating a new one.
Conclusion
And there you have it! A simple solution to a seemingly complex problem. Remember, the key is to understand how the modules work and to think outside the box when troubleshooting. Keep exploring, keep learning, and keep making the most out of Make.com!
You do have further questions?
Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.