• Resolved denisqs

    (@denisqs)


    Hi !

    I am trying to use a Zap (from Zapier) to create a Custom Post on my website.

    It works just fine, I am creating ACF as well, no issues.

    However, I need an existing image file on my website to be updated in my Custom Field. It doesn’t seem to be working with my current JSON code.

    {
    “update_field”:[
    {
    “selector”: “peb”,
    “value”: “TEXT WORKING FINE”},

    {
    “selector”: “PEB_img”,
    “value”: “https://www.perfectsiteurl.com/peb_d.png”}
    ]
    }

    The command is working just fine in Zapier, and my post is created, however, there is no image selected in my ACF image field.

    Any Ideas ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ironikus

    (@ironikus)

    Hey @denisqs – thank you very much for reaching out, as well as for using our plugin.
    As odd as it seems, but ACF uses the image id (attachment id) within the backend, even when you set the image URL as a return value.
    Therefore, you need to define the is instead of the url as a value.

    Thread Starter denisqs

    (@denisqs)

    Ah ! Weird but OK. It’s working fine with IMG ID. thanks !

    Plugin Contributor Ironikus

    (@ironikus)

    Thank you for your feedback, I’m glad it works out for you. Feel free to reach out again in case you have any questions. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ACF image field’ is closed to new replies.