❌ Wordpress Module replaces ALL media images

Hi everyone,

I’m trying to automate Wordpress posts with the featured image however I can’t get to do it properly and it looks like it’s making wordpress bug.

Here’s how I structured the flow:

HTTP request to get the image URL:

Then upload media in Wordpress using the HTTP get a file:

And lastly in Create post I’m selecting the (last) media item

Now the weird thing happens.

When Wordpress uploads the article, it sets the latest image as featured. All good right ?

Excepted that it replaces all previous uploaded images with :

What is even more weird is when I open an image, it shows the PREVIOUSLY uploaded image:

So I’m kinda lost here.

Any help would be greatly appreciated.

Try to clear the cache of your website and open the image again to see if it shows properly?

It doesn’t, every precedently uploaded image has its URL replaced by the latest one, so I guess that happens on the “Get Media” step but I don’t know what makes it replace all images

They all got their URL replaced by the latest uploaded image

I finally experience the same issue with yours!

It is the matter of file name. As the file name is the same every time, therefore, the images are replaced by the latest image.

I fine the solution that you have add a module to change the file name everytime.

You can use “Image“ module → Convert form → map → Data (selete the image link) , File name (use dynamic name)

then the problem you will solve.

1 Like

Thank you I didn’t know about that method. What I did was upload it on google drive and then back to wordpress.

I’ll try yours and come back

1 Like