Home › Forums › General Issues › Add image to image field type › Reply To: Add image to image field type
You are not going to be able to add an image path to an ACF image field. ACF image field like you say, only store the image ID. All of the other information is stored with the image’s attachment post entry an post meta.
To do this you need to insert the image into the media library and then update the ACF field with the ID of the attachment. This is not something that ACF will do for you.
See https://codex.wordpress.org/Function_Reference/wp_insert_attachment.
The other information is stored in various places
alt => post meta name _wp_attachment_image_alt
caption => post excerpt
descriptions => post content
title -> post title
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.