Home › Forums › General Issues › How to upload an Image via native image URL › Reply To: How to upload an Image via native image URL
I would use WP All Import Pro with the ACF Add On https://www.wpallimport.com/
If I needed to do this without that plugin.
1) Create an image field
2) Use media_sideload_image() to create add the image https://developer.wordpress.org/reference/functions/media_sideload_image/. This returns an attachment ID.
3) update the ACF field with the attachment ID value https://www.advancedcustomfields.com/resources/update_field/
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.