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.)?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.