CMB2 file_list issue ??
-
from field type :
A file uploader that allows you to add as many files as you want. Once added, files can be dragged and dropped to reorder.
This is a repeatable field, and will store its data in an array, with the attachment ID as the array key and the attachment url as the value.
uploaded 10k images to my custom uploads folder wp-content/uploads/my-custom
and using while loop i have generated attachment for all my images that are inside my-custom folder using
$attach_id = wp_insert_attachment();
how can i link to CMB2 file_list i tried to build it manual like this but did not work
a:1:{$attach_id:”url-to-image”}
how can i insert file_list using custom code based on attachment id and url ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CMB2 file_list issue ??’ is closed to new replies.