Image field (ACF) to File field (CMB2)
-
Early migration of basic ACF field types to CMB2 is going quite well.
But I could also do with some pointers…
My ACF Image field with meta_key “photos” stores values as an array.
When I specify a CMB2 field of type “file” with ID “photos”, the value appears in admin as “File: Array (Download / Remove)”.If I switch the definition to field type “file_list”, using the code in the docs, it shows “Replacement 146893 (Replacement / Replacement)” (ie. the image ID is in there).
I expect it to show the actual chosen image from the Media Library there.
Is there any easy way to leverage the values?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Image field (ACF) to File field (CMB2)’ is closed to new replies.