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
hello john,
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().
best regards
philipp
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.