How can I take a list of image URLs from a Wordpress form to attachments for a post ACF?

Status: Closed ยท Asked by Simon Maddox on ยท 0 views

Simon Maddox โ€” Question ยท
My workflow gets triggered on a form upload and 1 of the fields is a comma separated list of URLs for image uploads. I need to link those to a new WordPress post the workflow creates. To do this I need to upload each of the images (if any) first, save the ID number for each image in an array, then use that integer array when creating the post as a custom field.

I can see there is an Iterator action, but can't see how to end the iteration loop and move on to the next stage (creating the post). I have already Split the csv URLs field into a json array, but need a bit of help on how to:
  1. - Save the uploaded image IDs into a temporary array &
  2. - End the Iterator loop to be able to move on to the next stage

    Can anyone help me please??

    image.png
Simon Maddox โ€” Reply ยท

When I said save image IDs, I meant the ID that WordPress returns when you upload a file.

Also, how can I get the iteration # of the Iterator action so that I can name the images (e.g. {customer_name} Image {iteration_number})??

Simon Maddox โ€” Reply ยท

also, I see the file upload for WP is in beta, but not allowing a jpg upload?

image.png

Pabbly Support โ€” Reply ยท

Hello Simon,

Thanks for contacting us.

Could you please share the Workflow URL so that we can look into it and provide information accordingly?

Please be aware that to assist you effectively, we may need to access your Pabbly Connect account. If you're comfortable with this, please grant us permission by stating in your next email: "You have my permission to log into my Pabbly Connect account, and edit workflow {If required}. Here is the registered email address associated with it."

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Simon Maddox โ€” Reply ยท

Pabbly Support:
Hello Simon,Thanks for contacting us.Could you please share the Workflow URL so that we can look into it and provide information accordingly?Please be aware that to assist you effectively, we may need to access your Pabbly Connect account. If you're comfortable with this, please grant us permission

I did share it in the original post in this thread, and I'm happy for you to access it

Pabbly Support โ€” Reply ยท

Hello Simon,

Unfortunately, there is no workflow URL in any of the threads messages. Could you please share the Workflow URL so that we can look into it and provide information accordingly?

Please be aware that to assist you effectively, we may need to access your Pabbly Connect account. If you're comfortable with this, please grant us permission by stating in your next email: "You have my permission to log into my Pabbly Connect account, and edit workflow {If required}. Here is the registered email address associated with it."

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Simon Maddox โ€” Reply ยท

Thanks

Simon


Simon Maddox



Website design, secure hosting, IT support and telephony.

t: 01737 887 657   |   mob: 07785 504 340   |   w: maddox.co.uk   |   e: [email hidden]



On Tue, 14 Jul 2026 at 23:33, Pabbly Support <[email hidden]> wrote:

Hello Simon,

Unfortunately, there is no workflow URL in any of the threads messages. Could you please share the Workflow URL so that we can look into it and provide information accordingly?

Please be aware that to assist you effectively, we may need to access your Pabbly Connect account. If you're comfortable with this, please grant us permission by stating in your next email: "You have my permission to log into my Pabbly Connect account, and edit workflow {If required}. Here is the registered email address associated with it."

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Pabbly Support โ€” Reply ยท

Hello Simon,

Thank you for sharing the workflow URL.

In this workflow, the Iterator module cannot be used as it will create posts in WordPress separately. You have to bring the images separately in trigger response so that they can be mapped separately while creating the post.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Simon Maddox โ€” Reply ยท
Ok, but how can I do that?

Can 1 workflow trigger another after an iteration loop?

It seems the issue here is the iteration not having a structure that defines the end of the looped actions


Simon Maddox



Website design, secure hosting, IT support and telephony.

t: 01737 887 657   |   mob: 07785 504 340   |   w: maddox.co.uk   |   e: [email hidden]


On Wed, 15 Jul 2026, 22:46 Pabbly Support, <[email hidden]> wrote:

Hello Simon,

Thank you for sharing the workflow URL.

In this workflow, the Iterator module cannot be used as it will create posts in WordPress separately. You have to bring the images separately in trigger response so that they can be mapped separately while creating the post.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Pabbly Support โ€” Reply ยท

Hello Simon,

You need to get the images in separate labels, and the Iterator cannot be used in this workflow to achieve your use case to create a post on WordPress.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Simon Maddox โ€” Reply ยท
Sorry, but I feel you are not really supporting me here.

When you say "You need to get the images in separate labels" I have no idea what you mean by 'labels'.

Can you show me an example workflow or workflows that will work?


Simon Maddox



Website design, secure hosting, IT support and telephony.

t: 01737 887 657   |   mob: 07785 504 340   |   w: maddox.co.uk   |   e: [email hidden]



On Thu, 16 Jul 2026 at 22:33, Pabbly Support <[email hidden]> wrote:

Hello Simon,

You need to get the images in separate labels, and the Iterator cannot be used in this workflow to achieve your use case to create a post on WordPress.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Pabbly Support โ€” Reply ยท

Hello Simon,

With different labels, we mean that the images should be separate in the Trigger response, like Image1, Image2, Image3, etc., and should not be in the form of an array for which you require an iterator to process them one-by-one. Further, as I checked, there is only 1 Image in the image field so I am not sure about your Iterator usage in the workflow. I recommend that you remove the Iterator and directly map the image from the trigger response to WordPress: Upload file action.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Fagun Shah โ€” Reply ยท

Hello Simon,

If you don't mind, can you share the sample data that you receive in the trigger step? or share the "Workflow Share URL" for me to test it on my side.

I do automation freelancing and have been using pabbly connect for over 5-yrs so I might be able to suggest you a workaround after having look at the data.

Simon Maddox โ€” Reply ยท
What you say is not correct, as the form that triggers the flow allows customers to upload multiple images. It is true that some only upload 1, but often it is more. I do not know how many (if any) they will upload, hence the need for a loop.


Simon Maddox



Website design, secure hosting, IT support and telephony.

t: 01737 887 657   |   mob: 07785 504 340   |   w: maddox.co.uk   |   e: [email hidden]






On Thu, 16 Jul 2026, 23:50 Pabbly Support, <[email hidden]> wrote:

Hello Simon,

With different labels, we mean that the images should be separate in the Trigger response, like Image1, Image2, Image3, etc., and should not be in the form of an array for which you require an iterator to process them one-by-one. Further, as I checked, there is only 1 Image in the image field so I am not sure about your Iterator usage in the workflow. I recommend that you remove the Iterator and directly map the image from the trigger response to WordPress: Upload file action.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Pabbly Support โ€” Reply ยท

Hello Simon,

I understand that you are getting multiple images from a single field of image upload, and the multiple images are getting received in trigger response in the form of an array. An iterator can process all the images one by one, but will also process the following actions in a simultaneous manner. This will lead to the creation of multiple Posts on WordPress, one for each image. Also, the number of images will be dynamic in number every time, which will break the mapping in the Create a Post action.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Pabbly Support โ€” Reply ยท

Hello Simon,

Can you confirm if you want to add Media IDs in the Customer Image2 field (Custom field) as multiple images cannot be selected as the Featured image? If yes, then instead of Iterator module, using a Loop module and adding the generated IDs in the Google Sheet in Loop and then calling the Google Sheet range with IDs in the Main branch can make this workflow work.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Simon Maddox โ€” Reply ยท
If you look at the input into the workflow from the WordPress form submission you can see that there is a field in the form that allows the user to add 1 or more images, which are sent as a comma delimited list of URLs. I store that list in the Google Sheet. I then have a stage that converts that into a json array of URLs. I need to send each to Wordpress as an image upload, temporarily store the integer IDs that are returned by WP for each image into an array, then use that array to populate the custom field on the output.

Is it possible to use a loop and store the returned IDs in a local variable array in Pabbly before outputting them in a later stage?


Simon Maddox



Website design, secure hosting, IT support and telephony.

t: 01737 887 657   |   mob: 07785 504 340   |   w: maddox.co.uk   |   e: [email hidden]



On Fri, 17 Jul 2026 at 22:50, Pabbly Support <[email hidden]> wrote:

Hello Simon,

Can you confirm if you want to add Media IDs in the Customer Image2 field (Custom field) as multiple images cannot be selected as the Featured image? If yes, then instead of Iterator module, using a Loop module and adding the generated IDs in the Google Sheet in Loop and then calling the Google Sheet range with IDs in the Main branch can make this workflow work.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Pabbly Support โ€” Reply ยท

Hello Simon,

We recommend you use the Loop Module instead of the Iterator, in the loop module you have to add Media IDs in the Google Sheet after the WordPress Upload media action. Then in the Main branch, you have to get the particular range in Advanced format, and then by using the Text formatter module, you can create a single string of Media IDs separated with commas, which you can map in the WordPress Create a Post Custom field.

Kindly try implementing the above solution so that we can check and suggest based on the issues you face with this approach.

Thanks & Regards,

Adeel Akhtar
๐ŸŒ Pabbly.com

Back to all forum threads ยท Log in to reply