Support

Account

Home Forums General Issues Automating Shortcodes to ACF conversion Reply To: Automating Shortcodes to ACF conversion

  • Hi James,

    Thanks for the explanation. I’ll start working on this after some other tasks I’ve to finish.

    To get the images IDs, I already made a function that can get the attachment ID from an image url, so this should not give me any problem.

    Yet (without having tested), I’ve some questions about the update_field.
    Actually, none of my comparisons posts have any ACF before after comparison set. This means that when I click to edit a post, the flexible content field is available, but no “Before|After Fields Group” (see my drawing) have been added in any way. (BTW, the “Before|After Fields Group” into the flexible content field is a clone).

    Is the update_field able to act as if I would myself “add” the “Before|After Fields Group” and then populate its different subfields (before image, after image, etc.)?