Home › Forums › General Issues › update image field with image from the wordpress media library › Reply To: update image field with image from the wordpress media library
thanks for the quick response. no, i’don’t use the repeater field. here is an example which might help to understand my approach:
– i build a custom post type for a special electronic device
– this post type consists of a lot of data: text-fields, dropdowns, checkboxes and one image field.
– my client has a csv table with all the different models every single model is one instance of this custom post type. that means, every post has it’s own image that i want to store in the image field.
if i need the image id this might further complicate things, since i don’t have the ids but the name or the url of the image files. but i will try to expreimentate with the ids to, that might be a good hint.
and yes, i use the field_key when calling 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!