I'm currently developing a plugin for internal use at my company. What I'm trying to do is create an image gallery that gets it's content from our digital asset management company. I can access the collections from our DAM no problem and return an array with all the information I need (i.e. image title and image URL) and create a custom post type with a click of a button in the plugin admin page. The part I'm getting stuck on is 2 fold.
- On post creation (or update)create a custom meta box for each item in the array and...
- loop through the array and add the array value's to the meta input fields.
Essentially if there's 5 images in a returned array, the custom post type should have 5 meta boxes(or 1 box with 5 sets of fields), each containing the single image info (title/URL).
I'm sure jQuery needs to be leveraged within my add_meta_box callback function, I'm not sure the appropriate steps. What I'm looking for here is advice or a point in the right direction. I do have code but I don't believe it will be helpful at this point. I can post if needed. Thank you in advance everyone who takes the time to help.